Changed isnum to exit instead of return, as it's not a function.

This commit is contained in:
Dragon chasing the world on a string 2023-12-05 15:30:06 -06:00
parent e4f2291427
commit 991d97b9d2
1 changed files with 3 additions and 3 deletions

View File

@ -10,7 +10,7 @@ USAGE="Usage: $NAME [number]"
if usage "$1" "$USAGE" ; then exit ; fi
case "${1#[+-]}" in
(*[!0123456789]*) return 1 ;;
('') return 1 ;;
(*) return 0 ;;
(*[!0123456789]*) exit 1 ;;
('') exit 1 ;;
(*) exit 0 ;;
esac