From aca0412acb0babd61972d458f57775c90fe57912 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 22 Dec 2021 00:00:32 +0100 Subject: [PATCH] Fix linter warnings --- manifest.json | 6 ++---- scripts/restore | 5 +---- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/manifest.json b/manifest.json index d992ea3..eb53c55 100644 --- a/manifest.json +++ b/manifest.json @@ -33,8 +33,7 @@ "install" : [ { "name": "domain", - "type": "domain", - "example": "example.com" + "type": "domain" }, { "name": "path", @@ -44,8 +43,7 @@ }, { "name": "admin", - "type": "user", - "example": "johndoe" + "type": "user" }, { "name": "language", diff --git a/scripts/restore b/scripts/restore index d027dc9..f39f926 100644 --- a/scripts/restore +++ b/scripts/restore @@ -38,10 +38,7 @@ phpversion=$(ynh_app_setting_get --app=$app --key=phpversion) #================================================= 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