Skip to content

Commit

Permalink
MINOR: sh compatible conditions (#682)
Browse files Browse the repository at this point in the history
Change-Id: Ifb4c164d8bad86e251dcfa643e31fdeda9595eb3
  • Loading branch information
akatona84 authored Mar 9, 2020
1 parent 04f49b0 commit 0f5d857
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bootstrap/bootstrap-storage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ USAGE: $0 [create|migrate|info|validate|drop|drop-create|repair|check-connection
EOF
}

if [[ $# -gt 2 ]]
if [ $# -gt 2 ]
then
echo "More than two argument specified, please use only one of the below options"
printUsage
exit 1
fi

opt="$1"
[[ $# -eq 2 ]] && CONFIG_FILE_PATH="${2}"
[ $# -eq 2 ] && CONFIG_FILE_PATH="${2}"

case "${opt}" in
create | drop | migrate | info | validate | repair | check-connection )
Expand Down

0 comments on commit 0f5d857

Please sign in to comment.