From 78337ae8c899bed857f5b11dab082ad8368012cd Mon Sep 17 00:00:00 2001 From: zijiren233 Date: Sun, 23 Jun 2024 23:59:04 +0800 Subject: [PATCH] Fix: install script parse args micro arch --- script/install.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/script/install.sh b/script/install.sh index cca50156..1bc176ce 100755 --- a/script/install.sh +++ b/script/install.sh @@ -10,8 +10,9 @@ function Help() { echo "-h: help" echo "-v: install version (default: latest)" echo "-p: github proxy (default: https://mirror.ghproxy.com/)" - echo "-a: microarchitecture (no default value)" - echo " example: -a v2" + echo "-m: micro architecture (no default value)" + echo " example: -m v2" + echo " example: -m 6" } function Init() { @@ -28,7 +29,7 @@ function Init() { } function ParseArgs() { - while getopts "hv:p:" arg; do + while getopts "hv:p:m:" arg; do case $arg in h) Help @@ -40,7 +41,7 @@ function ParseArgs() { p) GH_PROXY="$OPTARG" ;; - a) + m) Microarchitecture="$OPTARG" ;; ?)