From 3d6030b43b904817364ae312780f0ae21392f2f5 Mon Sep 17 00:00:00 2001 From: Martin Scheidt Date: Thu, 10 Mar 2022 17:17:17 +0100 Subject: [PATCH] combined if condition --- build.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/build.sh b/build.sh index 2cf7600..c4c329d 100755 --- a/build.sh +++ b/build.sh @@ -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