From 4da9149d6cc6ddc228f99b43944f2d0ed4670114 Mon Sep 17 00:00:00 2001 From: polytan02 Date: Tue, 21 Feb 2017 23:40:35 +0000 Subject: [PATCH] 'exit' command shouldn't be used. Use 'ynh_die' helper instead. --- scripts/restore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/restore b/scripts/restore index d58b39b..3d3aef5 100644 --- a/scripts/restore +++ b/scripts/restore @@ -18,7 +18,7 @@ # Check domain/path availability sudo yunohost app checkurl "${domain}${path}" -a "$app" \ - || exit 1 + || ynh_die # Check destination directory DESTDIR="/var/www/$app"