From 02a810819ce9f8ba9d933249a2dc5b846cc182ca Mon Sep 17 00:00:00 2001 From: RikkaW Date: Wed, 5 Feb 2020 19:43:09 +0800 Subject: [PATCH] update scripts --- template/magisk_module/customize.sh | 2 +- template/magisk_module/uninstall.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/template/magisk_module/customize.sh b/template/magisk_module/customize.sh index 80eab77e..478c11c4 100644 --- a/template/magisk_module/customize.sh +++ b/template/magisk_module/customize.sh @@ -5,7 +5,7 @@ RIRU_VERSION_CODE="%%%RIRU_VERSION_CODE%%%" RIRU_VERSION_NAME="%%%RIRU_VERSION_NAME%%%" # check android -if [[ $API -lt 23 ]]; then +if [ "$API" -lt 23 ]; then abort "! Unsupported sdk: $API" else ui_print "- Device sdk: $API" diff --git a/template/magisk_module/uninstall.sh b/template/magisk_module/uninstall.sh index b99babb5..ffe473f8 100644 --- a/template/magisk_module/uninstall.sh +++ b/template/magisk_module/uninstall.sh @@ -1,3 +1,5 @@ #!/sbin/sh RIRU_PATH="/data/misc/riru" -rm -f "$RIRU_PATH/api_version" \ No newline at end of file +rm -f "$RIRU_PATH/api_version" +rm -f "$RIRU_PATH/version_code" +rm -f "$RIRU_PATH/version_name" \ No newline at end of file