From d04904460403eec4f5fbb08d1a801dfdffec0bf8 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Thu, 10 Jun 2021 22:46:46 +0200 Subject: [PATCH] Update scripts/upgrade Co-authored-by: Alexandre Aubin --- scripts/upgrade | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade b/scripts/upgrade index 1a4d3de..165ec36 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -100,7 +100,8 @@ then ynh_script_progression --message="Upgrading source files..." # Download, check integrity, uncompress and patch the source from app.src - if [ `cd $final_path && git rev-parse --is-inside-work-tree` ]; then + if git -C "$final_path" rev-parse --is-inside-work-tree` >/dev/null 2>/dev/null + then pushd "$final_path" git fetch git checkout tags/$version