commit af11c9c62c7fc7e0f8338e183a75a792523a1b99
parent 06f8a6d2ea25861d67be317aeadeef918e6af7b4
Author: Scott Moreau <oreaus@gmail.com>
Date: Tue, 24 Mar 2020 03:21:42 -0600
install.sh: Use path where the script lives as the build root
Using /home/scott/src/wayland/wayfire/wf-install assumes the script is being run from the repo directory.
Instead we should get the path by changing into dirname $0 directory
first and then using pwd -P.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/install.sh b/install.sh
@@ -66,7 +66,7 @@ fi
echo "Building Wayfire $STREAM"
echo "Installation prefix: $PREFIX"
-BUILDROOT=$(pwd)
+BUILDROOT="$(cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P)"
function ask_confirmation {
while true; do
read -p "$1" yn