From 2ea921ca9cb8cc63eb6bf84bc55d2d87ceb4c05d Mon Sep 17 00:00:00 2001 From: magikcypress Date: Mon, 8 May 2017 20:38:26 +0200 Subject: [PATCH] [fix] Replace Remove trailing by check_path function --- scripts/upgrade | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 371ffd1..457ce17 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -25,10 +25,7 @@ ynh_clean_setup () { } ynh_abort_if_errors # Active trap pour arrêter le script si une erreur est détectée. -# Remove trailing "/" for next commands -if [[ ! "$path" == "/" ]]; then - path=${path%/} -fi +CHECK_PATH # Checks and corrects the syntax of the path. # Create system user dedicace for this app ynh_system_user_create $app