From 7c88f8a19ae8e9762831a195a30b54b2923bcc55 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 25 Feb 2019 16:59:01 +0100 Subject: [PATCH] Improve detection that service exists for yunohost --- scripts/remove | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/remove b/scripts/remove index 08188af..7188258 100755 --- a/scripts/remove +++ b/scripts/remove @@ -29,7 +29,7 @@ final_path=$(ynh_app_setting_get $app final_path) #================================================= # Remove a service from the admin panel, added by `yunohost service add` -if yunohost service status | grep -q $app +if yunohost service status $app >/dev/null 2>&1 then ynh_print_info "Removing $app service" yunohost service remove $app