Skip to content

Commit

Permalink
S'assure que l'OS choisi pour installation est un nombre (#6183)
Browse files Browse the repository at this point in the history
* S'assure que l'OS choisi pour installation est un nombre

Fix #5343

* Fix typo in scripts/install_zds.sh

Co-authored-by: Arnaud-D <[email protected]>
  • Loading branch information
philippemilink and Arnaud-D authored Oct 3, 2021
1 parent 3259547 commit 3ff576e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/install_zds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ if ! $(_in "-packages" $@) && ( $(_in "+packages" $@) || $(_in "+base" $@) || $
read -n 1
echo ""

if ! [ "$REPLY" -eq "$REPLY" ] 2> /dev/null; then # check $REPLY contains a number
print_error "!! You have to pick a number!"
exit 1
fi

filepath="${arr[$REPLY]}"
if [[ $filepath == "" ]]; then
print_error "!! You don't pick the right choice."
Expand Down

0 comments on commit 3ff576e

Please sign in to comment.