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"
}
# 引数解析 参考記事: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
_usage
exit 0
;;
- -m | --mirror)
- mirror="${2}"
- shift 2
- ;;
-l | --lang)
locale_name="${2}"
shift 2