From 7ab2d596c20572a6643663ce9d7fd5ec4c1e8084 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Thu, 2 Feb 2023 22:55:27 +0100 Subject: [PATCH] Upgrade with ynh_exec_as git --- scripts/upgrade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 1b0b201..17a41ac 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -114,8 +114,8 @@ then # Download, check integrity, uncompress and patch the source from app.src pushd "$final_path" - git fetch --quiet --depth=1 origin "$yunorunner_release" - git reset --quiet --hard FETCH_HEAD + ynh_exec_as $app git fetch --quiet --depth=1 origin "$yunorunner_release" + ynh_exec_as $app git reset --quiet --hard FETCH_HEAD popd fi