Fix a bug when run docker_build.sh with one input

This commit is contained in:
LINxiansheng 2024-02-08 20:00:16 +00:00 committed by ob-robot
parent f8f62b75c7
commit 16d08bf241

View File

@ -2,7 +2,7 @@
if [ "$#" -gt 1 ]; then if [ "$#" -gt 1 ]; then
exit 1 exit 1
elif [ "$#" -gt 1 ]; then elif [ "$#" -eq 1 ]; then
BUILD_ARG="--build-arg VERSION=$1" BUILD_ARG="--build-arg VERSION=$1"
else else
BUILD_ARG="" BUILD_ARG=""