From 95eac9cccb2cba39446f83e8803565f018fa411b Mon Sep 17 00:00:00 2001 From: Spacelord Date: Sat, 7 Dec 2019 16:36:09 +0100 Subject: Git checkout fix (again) --- installer.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'installer.sh') diff --git a/installer.sh b/installer.sh index 1a6301c..ae6518e 100755 --- a/installer.sh +++ b/installer.sh @@ -41,8 +41,10 @@ INSTALL-PREP () { Iversion=(git describe --abbrev=0) # Get last tag(stable version) echo "Starting Git checkout to "$Iversion"" git init $tmp_path - git checkout $Iversion $tmp_path - + ( + cd $tmp_path + git checkout $Iversion $tmp_path + ) echo "" read -e -i "$VAR_PREFIX" -p "PREFIX (Install root directory): " input # Reads VAR_PREFIX -- cgit v1.2.3