Skip to content

Commit

Permalink
Fix: update.am "--force-latest"
Browse files Browse the repository at this point in the history
  • Loading branch information
zen0bit committed May 5, 2024
1 parent 3ef3125 commit e5ce91c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/update.am
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit e5ce91c

Please sign in to comment.