Exit with error if new_version is empty
This commit is contained in:
parent
3fa03cadd2
commit
70bf10ab59
|
@ -202,6 +202,11 @@ main() { # {{{
|
|||
is_var_empty "${gitea_current_version}" \
|
||||
&& error_message "Can't get current version from Gitea's binary (${gitea_bin_path})." 1
|
||||
# }}}
|
||||
# If gitea_new_version is empty {{{
|
||||
# Exit with error
|
||||
is_var_empty "${gitea_new_version}" \
|
||||
&& error_message "Can't get new version (${gitea_new_version}) from Gitea's repository (${gitea_repo_url})." 1
|
||||
# }}}
|
||||
|
||||
# If an update is available {{{
|
||||
if [ "${gitea_current_version}" != "${gitea_new_version}" ]; then
|
||||
|
|
Loading…
Reference in New Issue