Skip to content

Commit ed46704

Browse files
authored
Fix missing ln -r flag in Centos 6
The ln version included in Centos 6 doesn't have the '-r' flag which makes links relative. Therefore we workaround this issue by steeping in the AppDir folder and generating links from there. fix #28
1 parent da71825 commit ed46704

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

linuxdeploy-plugin-conda.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,12 @@ fi
126126

127127
# create symlinks for all binaries in usr/conda/bin/ in usr/bin/
128128
mkdir -p "$APPDIR"/usr/bin/
129-
for i in "$APPDIR"/usr/conda/bin/*; do
130-
ln -s -r "$i" "$APPDIR"/usr/bin/
129+
pushd "$APPDIR"
130+
for i in usr/conda/bin/*; do
131+
ln -s ../../"$i" usr/bin/
131132
done
133+
popd
134+
132135

133136
# remove bloat
134137
pushd "$APPDIR"/usr/conda

0 commit comments

Comments
 (0)