Fix option validation in start.sh

This commit is contained in:
Сергей Прохоров 2019-03-03 19:48:27 +01:00
parent 229ca2b6b8
commit 8ecc6bd2eb
No known key found for this signature in database
GPG key ID: 1C570244E4EF3337

View file

@ -51,7 +51,7 @@ done
# if at least one option is set...
if [ -n "${PORT}" -o -n "${SECRET}" -o -n "${TAG}" ]; then
# 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}'"
# validate format