diff --git a/scripts/install b/scripts/install index ac40ce7..d7b43a5 100644 --- a/scripts/install +++ b/scripts/install @@ -87,7 +87,9 @@ ynh_script_progression --message="Setting up source files..." ynh_app_setting_set --app=$app --key=final_path --value=$final_path # Download, check integrity, uncompress and patch the source from app.src git clone $source $final_path -git checkout $COMMIT +pushd "$final_path" + git checkout $COMMIT +popd #================================================= # NGINX CONFIGURATION diff --git a/scripts/upgrade b/scripts/upgrade index 48a2a75..68df4da 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -88,8 +88,10 @@ then ynh_script_progression --message="Upgrading source files..." # Download, check integrity, uncompress and patch the source from app.src - git pull - git checkout $COMMIT + pushd "$final_path" + git pull + git checkout $COMMIT + popd fi #=================================================