combined if condition

master
Martin Scheidt 2022-03-10 17:17:17 +01:00
parent f90b3a9b0d
commit 3d6030b43b
1 changed files with 1 additions and 5 deletions

View File

@ -90,11 +90,7 @@ process_arguments() {
-r|--release)
RELEASE=1
shift
if [ -z "$1" ]; then
print_usage
exit 1
fi
if [ "${1:0:1}" = "-" ]; then
if [ -z "$1" ] || [ "${1:0:1}" = "-" ]; then
print_usage
exit 1
fi