From 02a068500051c7bd9b53d4744369e732e426d01b Mon Sep 17 00:00:00 2001 From: Roman Kupriyanov Date: Wed, 21 Jul 2021 18:23:03 +0300 Subject: [PATCH] Fix comments and args --- scripts/upgrade | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index e058406..8ff8ba1 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -127,6 +127,7 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]; then pushd "$final_path/addon" if [ ! `git rev-parse --is-inside-work-tree &> /dev/null` ]; then + # If current install is not a Git repo then init one git init --quiet git remote add origin $addons_repo_url git fetch origin --quiet @@ -135,7 +136,7 @@ if [ "$upgrade_type" == "UPGRADE_APP" ]; then git fetch --quiet git checkout stable --quiet git pull --quiet - git reset --quiet --hard $addons_version_commit + git reset --hard $addons_version_commit --quiet popd fi