Skip to content

Commit

Permalink
magisk: Fix broken link for magisk v26.3
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Efremov <[email protected]>
  • Loading branch information
evdenis committed Sep 19, 2023
1 parent e2c1b66 commit 8c0d8f6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion usr/magisk/update_magisk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,16 @@ then
nver="alpha"
magisk_link="https://github.com/vvb2060/magisk_files/raw/${nver}/app-release.apk"
else
dash='-'
if [ "x$1" = "x" ]; then
nver="$(curl -s https://github.com/topjohnwu/Magisk/releases | grep -m 1 -Poe 'Magisk v[\d\.]+' | cut -d ' ' -f 2)"
else
nver="$1"
fi
magisk_link="https://github.com/topjohnwu/Magisk/releases/download/${nver}/Magisk-${nver}.apk"
if [ "$nver" = "v26.3" ]; then
dash='.'
fi
magisk_link="https://github.com/topjohnwu/Magisk/releases/download/${nver}/Magisk${dash}${nver}.apk"
fi

if [ \( -n "$nver" \) -a \( "$nver" != "$ver" \) -o ! \( -f "$DIR/magiskinit" \) -o \( "$nver" = "canary" \) -o \( "$nver" = "alpha" \) ]
Expand Down

0 comments on commit 8c0d8f6

Please sign in to comment.