From baa97005028927b3040a7fc42d24936740050198 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Mon, 14 Dec 2020 20:52:35 +0100 Subject: [PATCH] fix linter warnings --- scripts/_common.sh | 3 +-- scripts/upgrade | 7 ------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index a2238f5..2f36635 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -30,8 +30,7 @@ exec_as() { if [[ $USER = $(whoami) ]]; then eval $@ else - # use sudo twice to be root and be allowed to use another user - sudo sudo -u "$USER" $@ + sudo -u "$USER" $@ fi } diff --git a/scripts/upgrade b/scripts/upgrade index e4d7eff..6129e57 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -72,13 +72,6 @@ ynh_clean_setup () { # Exit if an error occurs during the execution of the script ynh_abort_if_errors -#================================================= -# CHECK THE PATH -#================================================= - -# Normalize the URL path syntax -path_url=$(ynh_normalize_url_path --path_url=$path_url) - #================================================= # STANDARD UPGRADE STEPS #=================================================