From 42356201ca87737e38214e5a5f9a00ee89526fda Mon Sep 17 00:00:00 2001 From: Gardouille Date: Thu, 27 Jan 2022 09:46:08 +0100 Subject: [PATCH] If new_version is empty, exit with error --- github/check.adguard.update | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/github/check.adguard.update b/github/check.adguard.update index fed5daa..0843924 100755 --- a/github/check.adguard.update +++ b/github/check.adguard.update @@ -152,10 +152,9 @@ main() { # {{{ && error_message "adguard_current_version seems empty (${adguard_current_version})." 2 ## Test adguard_new_version - ## AND exit without error + ## AND exit with error 3 is_var_empty "${adguard_new_version}" \ - && debug_message "adguard_new_version seems empty (${adguard_new_version}), exit without error." \ - && exit 0 + && error_message "adguard_new_version seems empty (${adguard_new_version}), exit without error." 3 ## Check if the current version is the last one {{{ if [ "${adguard_current_version}" != "${adguard_new_version}" ]; then