Skip to content

Commit 937aa21

Browse files
authored
Merge pull request #718 from Samueru-sama/main
Update genact
2 parents 58dbf4c + 45c57f9 commit 937aa21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

programs/x86_64/genact

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ printf "#!/bin/sh\nset -e\nrm -f /usr/local/bin/$APP\nrm -R -f /opt/$APP" > "/op
1212
chmod a+x "/opt/$APP/remove"
1313

1414
# DOWNLOAD AND PREPARE THE APP, $version is also used for updates
15-
version=$(curl -Ls https://api.github.com/repos/"$SITE"/releases | sed 's/[()",{} ]/\n/g' | grep -oiE "https.*$APP.*linux.*musl$" | grep -vi "apple\|windows\|darwin" | head -1)
15+
version=$(curl -Ls https://api.github.com/repos/"$SITE"/releases | sed 's/[()",{} ]/\n/g' | grep -oiE "https.*$APP.*x86_64.*linux.*musl$" | grep -vi "apple\|windows\|darwin" | head -1)
1616
wget "$version" || exit 1
1717
[ -e ./*7z ] && 7z x ./*7z && rm -f ./*7z
1818
[ -e ./*tar.* ] && tar fx ./*tar.* && rm -f ./*tar.*
@@ -33,7 +33,7 @@ set -u
3333
APP=genact
3434
SITE="svenstaro/genact"
3535
version0=$(cat "/opt/$APP/version")
36-
version=$(curl -Ls https://api.github.com/repos/"$SITE"/releases | sed 's/[()",{} ]/\n/g' | grep -oiE "https.*$APP.*linux.*musl$" | grep -vi "apple\|windows\|darwin" | head -1)
36+
version=$(curl -Ls https://api.github.com/repos/"$SITE"/releases | sed 's/[()",{} ]/\n/g' | grep -oiE "https.*$APP.*x86_64.*linux.*musl$" | grep -vi "apple\|windows\|darwin" | head -1)
3737
[ -n "$version" ] || { echo "Error getting link"; exit 1; }
3838
if [ "$version" != "$version0" ]; then
3939
mkdir "/opt/$APP/tmp" && cd "/opt/$APP/tmp" || exit 1

0 commit comments

Comments
 (0)