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 4, 2023
1 parent e602e1b commit 41aba77
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 @@ -15,12 +15,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 41aba77

Please sign in to comment.