Make version reporting consistent

This commit is contained in:
topjohnwu
2020-03-23 01:17:13 -07:00
parent 48d417f9af
commit ba7cb47383
10 changed files with 19 additions and 13 deletions

View File

@ -34,8 +34,11 @@ setup_flashable
# Detection
############
PRETTY_VER=$MAGISK_VER
echo $PRETTY_VER | grep -q '\.' && PRETTY_VER=v$PRETTY_VER
if echo $MAGISK_VER | grep -q '\.'; then
PRETTY_VER=$MAGISK_VER
else
PRETTY_VER="$MAGISK_VER($MAGISK_VER_CODE)"
fi
print_title "Magisk $PRETTY_VER Installer"
is_mounted /data || mount /data || is_mounted /cache || mount /cache