1
0
Fork 1
mirror of https://example.com synced 2024-11-22 16:26:38 +09:00

dev (minor): don't take "yes" as a negative response

This commit is contained in:
naskya 2024-01-05 10:37:21 +09:00
parent 5307338de9
commit d006fe9190
Signed by: naskya
GPG key ID: 712D413B3A9FED5C

View file

@ -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 "$@"
;;