From df5d97338bdc756bc9497a6edb252201748d2680 Mon Sep 17 00:00:00 2001 From: Chi-En Wu Date: Wed, 29 Apr 2020 09:29:04 +0800 Subject: [PATCH] style: make if statements consistent --- scripts/bump-version.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/bump-version.sh b/scripts/bump-version.sh index d280bab..0bd1f81 100755 --- a/scripts/bump-version.sh +++ b/scripts/bump-version.sh @@ -8,13 +8,15 @@ printusage() { ROOT_PATH=$(dirname "$0")/.. -if [[ $# -eq 0 ]]; then +if [[ $# -eq 0 ]] +then printusage exit 1 fi UPDATED_PART=$1 -if [[ ! ($UPDATED_PART == "patch" || $UPDATED_PART == "minor" || $UPDATED_PART == "major") ]]; then +if [[ ! ($UPDATED_PART == "patch" || $UPDATED_PART == "minor" || $UPDATED_PART == "major") ]] +then printusage exit 1 fi