From e5ce91c17f9e30327858ebd885215750ba024b92 Mon Sep 17 00:00:00 2001 From: zen0bit Date: Mon, 6 May 2024 00:13:46 +0200 Subject: [PATCH] Fix: update.am "--force-latest" --- modules/update.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/update.am b/modules/update.am index cabfb94af3..6345ec2a9b 100644 --- a/modules/update.am +++ b/modules/update.am @@ -104,10 +104,10 @@ function _update_rest() { printf ' ERROR: %s cannot manage updates for %s' "$AMCLI" "$2" elif ! grep -q "api.github.com" "$APPSPATH/$2"/AM-updater; then printf ' ERROR: %s source is not on Github' "$2" - elif ! grep -q "releases -O -" "$APPSPATH/$2"/AM-updater; then + elif ! grep -q "/releases | jq " $APPSPATH/$2/AM-updater; then printf ' ERROR: %s does not redirect to a generic "releases"' "$2" else - sed -i 's#releases -O -#releases/latest -O -#g' "$APPSPATH/$2"/AM-updater + sed -i 's#/releases | jq #/releases/latest | jq #g' $APPSPATH/$2/AM-updater $AMCLIPATH -u "$2" fi }