Changed isnum to exit instead of return, as it's not a function.
This commit is contained in:
parent
e4f2291427
commit
991d97b9d2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue