getapp: adapt for arch apps

This commit is contained in:
Phantop 2024-06-10 17:48:10 -04:00
parent 70edc265f5
commit 1cf64d2ef6

View file

@ -3,5 +3,6 @@ set -e # exit on failure
IFS=$(printf '\n\t') # smarter ifs
gh run download -n "$1"
chmod +x "$1"
mv "$1" "$(dirname "$(realpath "$0")")/bin"
file="$(echo "$1" | sed 's/^arch-//')"
chmod +x "$file"
mv "$file" "$(dirname "$(realpath "$0")")/bin"