From 613ac08a840c8dea14a3ad3d20fe63ba5724f350 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Sat, 2 Jan 2021 10:37:48 +0100 Subject: [PATCH] quote paths that may contain spaces --- install.sh | 4 ++-- uninstall.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 449cf65..2dcf66b 100755 --- a/install.sh +++ b/install.sh @@ -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 diff --git a/uninstall.sh b/uninstall.sh index 37feeaa..d1665f4 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -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