From a9f23e9b23578117dbf82241ddb6e8ea8975bd32 Mon Sep 17 00:00:00 2001 From: th33xitus Date: Mon, 21 Jun 2021 20:43:01 +0200 Subject: [PATCH] script: remove else statement from do_action_service Caused spamming of error messages when starting from a complete new Pi image. --- scripts/functions.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/functions.sh b/scripts/functions.sh index 2713635..4424f0c 100755 --- a/scripts/functions.sh +++ b/scripts/functions.sh @@ -162,8 +162,6 @@ do_action_service(){ sudo systemctl $1 "$service" ok_msg "$service $ACTION1!" done - else - ERROR_MSG="Service '$2' not found!" && print_msg && clear_msg fi shopt -u extglob # disable extended globbing }