Skip to content
Snippets Groups Projects
Verified Commit effb6e6f authored by Karel Koci's avatar Karel Koci :metal:
Browse files

helpers/generate_common: fix URL to detect updater version

parent 54a4b246
1 merge request!141Hotfix/updater ng detection
......@@ -74,7 +74,7 @@ get_usign() {
updater_ng_repodetect() {
local REPO="$1"
local BOARD="${2:-mox}"
local VERSION="$(curl "https://repo.turris.cz/$REPO/packages/$BOARD/turrispackages/Packages" | \
local VERSION="$(curl "https://repo.turris.cz/$REPO/$BOARD/packages/turrispackages/Packages" | \
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 $UPDATER_VERSION instead."
......
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