dev: use 'exit 2' for invalid uses according to the common practice

This commit is contained in:
naskya 2024-01-09 10:58:50 +09:00
parent ddbf884cb5
commit d047d01b90
Signed by: naskya
GPG key ID: 712D413B3A9FED5C

View file

@ -91,7 +91,7 @@ else
case "${resp}" in
[Yy]|[Yy][Ee][Ss])
sadsay "Watch out! ${resp} is not a valid answer." >&2
exit 1
exit 2
;;
[Dd]) docker_update "$@" ;;
[Pp]) podman_update "$@" ;;