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

generate_common.sh: simplify updater-ng version detection

parent 812ab75d
Branches
Tags
2 merge requests!123Turris OS 5.0 (HBK),!12New release
......@@ -74,9 +74,8 @@ get_usign() {
updater_ng_repodetect() {
local REPO="$1"
local BOARD="${2:-mox}"
local VERSION="$(curl "https://repo.turris.cz/$REPO/packages/$BOARD/turrispackages/Packages" \
| sed -n '/^Package: updater-ng$/,/^$/p' \
| awk '/^Version: /{ gsub("-.*$","",$2); print $2 }')"
local VERSION="$(curl "https://repo.turris.cz/$REPO/packages/$BOARD/turrispackages/Packages" | \
awk '/^Package: updater-ng$/,/^$/ ^^ $1 == "Version:" { gsub(/-.*$/,"",$2); print $2 }')"
if [ -z "$VERSION" ]; then
echo "Detection of updater-ng version from repository failed. Using $UPDATER_VERSION instead."
else
......
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