fix shell script
This commit is contained in:
parent
4fd32718e1
commit
c6da7fea26
1 changed files with 14 additions and 12 deletions
|
@ -166,6 +166,7 @@ if [ "$keyboard_shield" == "y" ]; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "MCU Board Revision:"
|
echo "MCU Board Revision:"
|
||||||
select opt in "${_valid_revisions[@]}" "Quit"; do
|
select opt in "${_valid_revisions[@]}" "Quit"; do
|
||||||
|
case "$REPLY" in
|
||||||
''|*[!0-9]*) echo "Invalid option. Try another one."; continue;;
|
''|*[!0-9]*) echo "Invalid option. Try another one."; continue;;
|
||||||
|
|
||||||
$(( ${#_valid_revisions[@]}+1 )) ) echo "Goodbye!"; exit 1;;
|
$(( ${#_valid_revisions[@]}+1 )) ) echo "Goodbye!"; exit 1;;
|
||||||
|
@ -180,6 +181,7 @@ if [ "$keyboard_shield" == "y" ]; then
|
||||||
boards=( "${board}" )
|
boards=( "${board}" )
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
|
esac
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue