quote paths that may contain spaces

This commit is contained in:
Lephenixnoir 2021-01-02 10:37:48 +01:00
parent 11fc5fc354
commit 613ac08a84
Signed by untrusted user: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
2 changed files with 4 additions and 4 deletions

View File

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

View File

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