Format code

This commit is contained in:
Howard Wu 2024-02-08 15:14:56 +08:00
parent 0906e3868b
commit ea61cd4052

View File

@ -217,19 +217,58 @@ opts=$(
eval set --"$opts"
while [[ $# -gt 0 ]]; do
case "$1" in
--arch ) ARCH="$2"; shift 2 ;;
--release-type ) RELEASE_TYPE="$2"; shift 2 ;;
--install-gapps ) HAS_GAPPS=true; shift 2 ;;
--root-sol ) ROOT_SOL="$2"; shift 2 ;;
--compress-format ) COMPRESS_FORMAT="$2"; shift 2 ;;
--compress ) COMPRESS_OUTPUT="yes"; shift ;;
--offline ) OFFLINE="on"; shift ;;
--magisk-custom ) CUSTOM_MAGISK="debug"; shift ;;
--magisk-ver ) MAGISK_VER="$2"; shift 2 ;;
--debug ) DEBUG="on"; shift ;;
--skip-download-wsa ) DOWN_WSA="no"; shift ;;
--help ) usage; exit 0 ;;
-- ) shift; break;;
--arch)
ARCH="$2"
shift 2
;;
--release-type)
RELEASE_TYPE="$2"
shift 2
;;
--install-gapps)
HAS_GAPPS=true
shift 2
;;
--root-sol)
ROOT_SOL="$2"
shift 2
;;
--compress-format)
COMPRESS_FORMAT="$2"
shift 2
;;
--compress)
COMPRESS_OUTPUT="yes"
shift
;;
--offline)
OFFLINE="on"
shift
;;
--magisk-custom)
CUSTOM_MAGISK="debug"
shift
;;
--magisk-ver)
MAGISK_VER="$2"
shift 2
;;
--debug)
DEBUG="on"
shift
;;
--skip-download-wsa)
DOWN_WSA="no"
shift
;;
--help)
usage
exit 0
;;
--)
shift
break
;;
esac
done
@ -317,7 +356,7 @@ update_ksu_zip_name() {
"2307") KERNEL_VER="5.15.104.2" ;;
"2308") KERNEL_VER="5.15.104.3" ;;
"2309") KERNEL_VER="5.15.104.4" ;;
*) abort "KernelSU is not supported in this WSA version: $WSA_MAJOR_VER"
*) abort "KernelSU is not supported in this WSA version: $WSA_MAJOR_VER" ;;
esac
KERNELSU_ZIP_NAME=kernelsu-$ARCH-$KERNEL_VER.zip
KERNELSU_PATH=$DOWNLOAD_DIR/$KERNELSU_ZIP_NAME