Fixing linker

This commit is contained in:
Siina Mashek 2021-01-23 12:22:53 +02:00
parent 251a4bf209
commit ceb7b7c376

View file

@ -3,7 +3,7 @@
node=$(uname -n)
node_files=($(ls $PWD/$node))
common_files=($(ls $PWD/common))
dest="$HOME/.local/bin"
dest="$HOME/.local/bin/"
# Ensure destination exists
if [ ! -d "$dest" ]; then
@ -11,9 +11,9 @@ if [ ! -d "$dest" ]; then
fi
for file in "${node_files[@]}"; do
ln -sf "$PWD/bin/$file" "$dest"
ln -sf "$PWD/$node/$file" "$dest"
done
for file in "${common_files[@]}"; do
ln -sf "$PWD/bin/$file" "$dest"
ln -sf "$PWD/common/$file" "$dest"
done