From 0fee8d4621044c21c3d36f1ee542b05b3b7b2a08 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 24 Nov 2021 22:15:46 +0100 Subject: [PATCH] Fix linter --- scripts/restore | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/restore b/scripts/restore index 5ce93ce..a0f2fd7 100644 --- a/scripts/restore +++ b/scripts/restore @@ -41,10 +41,7 @@ port=$(ynh_app_setting_get --app=$app --key=port) #================================================= ynh_script_progression --message="Validating restoration parameters..." -ynh_webpath_available --domain=$domain --path_url=$path_url \ - || ynh_die --message="Path not available: ${domain}${path_url}" -test ! -d $final_path \ - || ynh_die --message="There is already a directory: $final_path " +test ! -d $final_path || ynh_die --message="There is already a directory: $final_path " #================================================= # STANDARD RESTORATION STEPS