dev (minor): don't take "yes" as a negative response
This commit is contained in:
parent
5307338de9
commit
d006fe9190
1 changed files with 7 additions and 3 deletions
10
update.sh
10
update.sh
|
@ -75,16 +75,20 @@ for message in neko/messages/*; do
|
|||
done
|
||||
|
||||
say 'Do you use Docker or Podman?'
|
||||
printf '(d: Docker, p: Podman, n: No) [d/p/N] > '
|
||||
read -r yn
|
||||
printf 'd: Docker, p: Podman, n: No [d/p/N] > '
|
||||
read -r resp
|
||||
|
||||
case "${yn}" in
|
||||
case "${resp}" in
|
||||
[Dd])
|
||||
./neko/update/docker.sh 'docker' "$@"
|
||||
;;
|
||||
[Pp])
|
||||
./neko/update/docker.sh 'podman' "$@"
|
||||
;;
|
||||
[Yy]|[Yy][Ee][Ss])
|
||||
printf "Watch out! ${resp} is not a valid answer.\n" >&2
|
||||
exit 1
|
||||
;;
|
||||
*)
|
||||
./neko/update/native.sh "$@"
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue