1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/yunorunner_ynh.git synced 2024-09-03 20:36:13 +02:00

Propagate git command changes to install script

This commit is contained in:
Alexandre Aubin 2023-02-12 17:48:28 +01:00 committed by GitHub
parent 94ca54358b
commit f88c8b9c59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,11 +80,11 @@ ynh_script_progression --message="Setting up source files..."
ynh_app_setting_set --app=$app --key=final_path --value=$final_path ynh_app_setting_set --app=$app --key=final_path --value=$final_path
# Download, check integrity, uncompress and patch the source from app.src # Download, check integrity, uncompress and patch the source from app.src
git init "$final_path" ynh_exec_as $app git init "$final_path"
pushd "$final_path" pushd "$final_path"
git remote add origin "$yunorunner_repository" ynh_exec_as $app git remote add origin "$yunorunner_repository"
git fetch --quiet --depth=1 origin "$yunorunner_release" ynh_exec_as $app git fetch --quiet --depth=1 origin "$yunorunner_release"
git reset --quiet --hard FETCH_HEAD ynh_exec_as $app git reset --quiet --hard FETCH_HEAD
popd popd
chmod 750 "$final_path" chmod 750 "$final_path"