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

generate_common.sh: fix updater version

parent 0eb61138
Branches
Tags
1 merge request!123Turris OS 5.0 (HBK)
......@@ -76,7 +76,7 @@ updater_ng_repodetect() {
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 }')"
| awk '/^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