Fixing linker
This commit is contained in:
parent
251a4bf209
commit
ceb7b7c376
6
link.sh
6
link.sh
|
@ -3,7 +3,7 @@
|
||||||
node=$(uname -n)
|
node=$(uname -n)
|
||||||
node_files=($(ls $PWD/$node))
|
node_files=($(ls $PWD/$node))
|
||||||
common_files=($(ls $PWD/common))
|
common_files=($(ls $PWD/common))
|
||||||
dest="$HOME/.local/bin"
|
dest="$HOME/.local/bin/"
|
||||||
|
|
||||||
# Ensure destination exists
|
# Ensure destination exists
|
||||||
if [ ! -d "$dest" ]; then
|
if [ ! -d "$dest" ]; then
|
||||||
|
@ -11,9 +11,9 @@ if [ ! -d "$dest" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for file in "${node_files[@]}"; do
|
for file in "${node_files[@]}"; do
|
||||||
ln -sf "$PWD/bin/$file" "$dest"
|
ln -sf "$PWD/$node/$file" "$dest"
|
||||||
done
|
done
|
||||||
|
|
||||||
for file in "${common_files[@]}"; do
|
for file in "${common_files[@]}"; do
|
||||||
ln -sf "$PWD/bin/$file" "$dest"
|
ln -sf "$PWD/common/$file" "$dest"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue