github: prevent fetching armh binaries

This commit is contained in:
Phantop 2022-04-12 16:01:57 -04:00
parent 54343023d8
commit 000c2d6e2c

View file

@ -6,5 +6,5 @@ LINK2="$(echo $1/releases | sed 's|github.com|api.github.com/repos|')"
if ! grep github.com <<< "$1"; then
LINK2="$(curl "$1" | grep -o https.\*releases | sed 's|github.com|api.github.com/repos|')"
fi
LINK3="$(curl "$LINK2" | grep -v arm64 | grep -om1 https.\*AppImage)"
LINK3="$(curl "$LINK2" | grep -v arm64 | grep -v armh | grep -om1 https.\*AppImage)"
appdwarf "${@:2}" -u "$LINK3"