OSDN Git Service

[remove] : -m
authorhayao <shun819.mail@gmail.com>
Sat, 21 Nov 2020 02:36:13 +0000 (11:36 +0900)
committerhayao <shun819.mail@gmail.com>
Sat, 21 Nov 2020 02:36:13 +0000 (11:36 +0900)
build.sh

index 96a9a5f..3d86f3b 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -194,8 +194,6 @@ _usage () {
     echo "    -b | --bootsplash      Enable Plymouth"
     echo "    -l | --lang <lang>     Specifies the default language for the live environment"
     echo "                           Default: ${locale_name}"
-    echo "    -m | --mirror <url>    Set apt mirror server."
-    echo "                           Default: ${mirror}"
     echo "    -o | --out <dir>       Set the output directory"
     echo "                           Default: ${out_dir}"
     echo "    -w | --work <dir>      Set the working directory"
@@ -496,8 +494,8 @@ make_checksum() {
 }
 
 # 引数解析 参考記事:https://0e0.pw/ci83 https://0e0.pw/VJlg
-_opt_short="w:l:o:hba:-:m:c:dx"
-_opt_long="help,arch:,codename:,debug,help,lang,mirror:,out:,work,cache-only,bootsplash,bash-debug"
+_opt_short="w:l:o:hba:-:c:dx"
+_opt_long="help,arch:,codename:,debug,help,lang,out:,work,cache-only,bootsplash,bash-debug"
 OPT=$(getopt -o ${_opt_short} -l ${_opt_long} -- "${@}")
 
 if [[ ${?} != 0 ]]; then
@@ -528,10 +526,6 @@ while :; do
             _usage
             exit 0
             ;;
-        -m | --mirror)
-            mirror="${2}"
-            shift 2
-            ;;
         -l | --lang)
             locale_name="${2}"
             shift 2