If new_version is empty, exit with error
This commit is contained in:
parent
bea6477709
commit
42356201ca
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue