Skip to content

Commit f3f5167

Browse files
committed
[fix] : Fixed channel check
1 parent 227867c commit f3f5167

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tools/wizard.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -511,15 +511,15 @@ Function_Global_Ask_channel () {
511511
Var_Local_count="$(( Var_Local_count + 1 ))"
512512
done
513513
echo -n ":"
514-
read channel
514+
read Var_Global_Build_channel
515515

516516
# 入力された値が数字かどうか判定する
517517
set +e
518518
expr "${Var_Global_Build_channel}" + 1 >/dev/null 2>&1
519-
if [[ ${?} -lt 2 ]]; then
519+
if (( ${?} == 0 )); then
520520
set -e
521521
# 数字である
522-
Var_Global_Build_channel=$(( channel - 1 ))
522+
Var_Global_Build_channel=$(( Var_Global_Build_channel - 1))
523523
if [[ -z "${Var_Local_channel_list[${Var_Global_Build_channel}]}" ]]; then
524524
Function_Global_Ask_channel
525525
return 0
@@ -704,6 +704,7 @@ Function_Global_Main_ask_questions () {
704704
}
705705

706706
Function_Global_Prebuild() {
707+
Function_Global_Ask_channel
707708
Function_Global_Main_wizard_language
708709
Function_Global_Main_check_required_files
709710
Function_Global_Main_load_default_config

0 commit comments

Comments
 (0)