If new_version is empty, exit with error

This commit is contained in:
gardouille 2022-01-27 09:46:08 +01:00
parent bea6477709
commit 42356201ca
Signed by: gardouille
GPG Key ID: E759BAA22501AF32
1 changed files with 2 additions and 3 deletions

View File

@ -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