From 76d8e8679959752cdc5b41ae4cf018d0488fcdbd Mon Sep 17 00:00:00 2001 From: siaal Date: Tue, 25 Oct 2022 04:34:00 +1000 Subject: [PATCH] changed gitpath to be relative to install file, not cwd --- setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 8709452..86a778a 100755 --- a/setup.sh +++ b/setup.sh @@ -7,7 +7,7 @@ GREEN='\e[32m' checkEnv(){ ## Check if the current directory is writable. - GITPATH=$(pwd) + GITPATH="$(dirname "$(realpath "$0")")" if [[ ! -w ${GITPATH} ]];then echo -e "${RED}Can't write to ${GITPATH}${RC}" exit 1