Fix option validation in start.sh

parent 229ca2b6
...@@ -51,7 +51,7 @@ done ...@@ -51,7 +51,7 @@ done
# if at least one option is set... # if at least one option is set...
if [ -n "${PORT}" -o -n "${SECRET}" -o -n "${TAG}" ]; then if [ -n "${PORT}" -o -n "${SECRET}" -o -n "${TAG}" ]; then
# If at least one of them not set... # If at least one of them not set...
[ -z "${PORT}" -o -z "${SECRET}" -o -z "${SECRET}" ] && \ [ -z "${PORT}" -o -z "${SECRET}" -o -z "${TAG}" ] && \
error "Not enough options: -p '${PORT}' -s '${SECRET}' -t '${TAG}'" error "Not enough options: -p '${PORT}' -s '${SECRET}' -t '${TAG}'"
# validate format # validate format
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment