Also check if no argument is specified

This commit is contained in:
4G3NT 2023-06-17 04:36:42 -07:00 committed by GitHub
parent 1e114e5d5a
commit ed9141853f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ shift $((OPTIND - 1))
msg="$1"
[ -z "$msg" ] && {
[ -z "$msg" ] && [ "$#" -eq 0 ] && {
err "a message needs to be specified"
exit 1
}