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