From 6116dd46d8b85cac8cfcdb5a753c48725eb51fed Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 19 Jul 2021 10:13:44 +0200 Subject: [PATCH] --quiet --- scripts/install | 6 +++--- scripts/upgrade | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/install b/scripts/install index 94805b2..9679f1b 100644 --- a/scripts/install +++ b/scripts/install @@ -80,7 +80,7 @@ ynh_script_progression --message="Setting up source files..." --weight=5 ynh_app_setting_set --app=$app --key=final_path --value=$final_path # 1 - Clone stable repo -git clone https://github.com/friendica/friendica.git -b stable "$final_path" +git clone --quiet https://github.com/friendica/friendica.git -b stable "$final_path" # Reset branch to the level of update we needed pushd "$final_path" git reset --hard $version_commit @@ -90,10 +90,10 @@ popd cp -f "$final_path/.htaccess-dist" "$final_path/.htaccess" # 2 - Clone addons repo -git clone https://github.com/friendica/friendica-addons.git -b stable "$final_path/addon" +git clone --quiet https://github.com/friendica/friendica-addons.git -b stable "$final_path/addon" # Reset addons branch to the level of update we needed pushd "$final_path/addon" - git reset --hard $addons_version_commit + git reset --hard --quiet $addons_version_commit popd chmod 750 "$final_path" diff --git a/scripts/upgrade b/scripts/upgrade index 5de0c3c..695c94d 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -129,25 +129,25 @@ else cp -a "$final_path/view/smarty3" "$tmpdir/smarty3" # Remove the app directory securely - ynh_secure_remove "$final_path" + ynh_secure_remove --file="$final_path" # 1 - Clone stable repo - git clone https://github.com/friendica/friendica.git -b stable "$final_path" + git clone --quiet https://github.com/friendica/friendica.git -b stable "$final_path" # Reset branch to the level of update we needed pushd "$final_path" - git reset --hard $version_commit + git reset --hard --quiet $version_commit popd # 2 - Clone addons repo - git clone https://github.com/friendica/friendica-addons.git -b stable "$final_path/addon" + git clone --quiet https://github.com/friendica/friendica-addons.git -b stable "$final_path/addon" # Reset addons branch to the level of update we needed pushd "$final_path/addon" - git reset --hard $addons_version_commit + git reset --hard --quiet $addons_version_commit popd # Restore the smarty3 folder cp -a "$tmpdir/smarty3" "$final_path/view/smarty3" - ynh_secure_remove "$tmpdir" + ynh_secure_remove --file="$tmpdir" fi fi