Skip to content
Snippets Groups Projects
Verified Commit 3ac9e247 authored by Michal Vasilek's avatar Michal Vasilek
Browse files

helpers/generate_common.sh: set fallback updater version

The error message says that $DEFAULT_UPDATER_VERSION will be used, but
it wasn't actually set anywhere which resulted in an unbound variable
error.
parent 4d1ecb61
1 merge request!620helpers/generate_common.sh: set fallback updater version
Pipeline #110415 failed with stages
in 10 minutes and 10 seconds
......@@ -296,6 +296,7 @@ updater_ng_repodetect() {
awk '/^Package: updater-ng$/,/^$/ { if ($1 == "Version:") { gsub("-.*$","",$2); print $2 } }')"
if [ -z "$version" ]; then
warn "Detection of updater-ng version from repository failed. Using $DEFAULT_UPDATER_VERSION instead."
UPDATER_VERSION="$DEFAULT_UPDATER_VERSION"
else
UPDATER_VERSION="v$version"
fi
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment