From 619f88d4f10453116ddf38f080cad7ae85805bd0 Mon Sep 17 00:00:00 2001 From: hayao Date: Wed, 15 Apr 2020 16:35:00 +0900 Subject: [PATCH] [update] : Changed the order of adding keys --- wizard.sh | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/wizard.sh b/wizard.sh index 8e824920..2988b90e 100755 --- a/wizard.sh +++ b/wizard.sh @@ -26,16 +26,6 @@ function check_files () { fi } -function run_add_key_script () { - local yn - echo -n "AlterLinuxの鍵を追加しますか? (y/N) : " - read yn - case ${yn} in - y | Y | yes | Yes | YES ) sudo "${script_path}/keyring.sh" --alter-add ;; - n | N | no | No | NO ) return 0 ;; - * ) run_add_key_script ;; - esac -} function install_dependencies () { local checkpkg @@ -70,12 +60,26 @@ function install_dependencies () { } + +function run_add_key_script () { + local yn + echo -n "AlterLinuxの鍵を追加しますか? (y/N) : " + read yn + case ${yn} in + y | Y | yes | Yes | YES ) sudo "${script_path}/keyring.sh" --alter-add ;; + n | N | no | No | NO ) return 0 ;; + * ) run_add_key_script ;; + esac +} + + function remove_dependencies () { if [[ -n "${install[@]}" ]]; then sudo pacman -Rsn ${install[@]} fi } + function enable_plymouth () { local yn echo -n "Plymouthを有効化しますか? (y/N) : " @@ -87,6 +91,7 @@ function enable_plymouth () { esac } + function enable_japanese () { local yn echo -n "日本語を有効化しますか? (y/N) : " @@ -98,6 +103,7 @@ function enable_japanese () { esac } + function select_comp_type () { local yn local details @@ -147,6 +153,7 @@ function select_comp_type () { return 0 } + function set_comp_option () { # lzmaには詳細なオプションはありません。 @@ -240,6 +247,7 @@ function set_comp_option () { fi } + function set_username () { local details local ask_comp_type @@ -266,6 +274,7 @@ function set_username () { return 0 } + function set_password () { local details local ask_comp_type @@ -303,6 +312,7 @@ function set_password () { return 0 } + function select_kernel () { set +e local do_you_want_to_select_kernel @@ -379,6 +389,7 @@ function select_kernel () { set -e } + # チャンネルの指定 function select_channel () { local ask_channel -- 2.11.0