quote paths that may contain spaces

This commit is contained in:
Lephenixnoir 2021-01-02 10:37:48 +01:00
parent 11fc5fc354
commit 613ac08a84
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495
2 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
#! /usr/bin/env bash #! /usr/bin/env bash
source util.sh source util.sh
PREFIX=$1 PREFIX="$1"
cd build cd build
echo "$TAG Installing to local folder..." echo "$TAG Installing to local folder..."
@ -12,7 +12,7 @@ cd ..
# Symbolic link executables to $PREFIX/bin # Symbolic link executables to $PREFIX/bin
echo "$TAG Symlinking binaries..." echo "$TAG Symlinking binaries..."
for x in bin/*; do for x in bin/*; do
ln -s $(pwd)/$x $PREFIX/$x ln -s "$(pwd)/$x" "$PREFIX/$x"
done done
# Cleanup build files # Cleanup build files

View file

@ -1,12 +1,12 @@
#! /usr/bin/env bash #! /usr/bin/env bash
source util.sh source util.sh
PREFIX=$1 PREFIX="$1"
# Remove symlinks # Remove symlinks
echo "$TAG Removing symlinks to binaries..." echo "$TAG Removing symlinks to binaries..."
for x in bin/*; do for x in bin/*; do
rm $PREFIX/$x rm "$PREFIX/$x"
done done
# Remove local files # Remove local files