Fail if HOSTNAME variable not set.

This commit is contained in:
Jonas Pedersen 2019-06-13 21:59:59 +02:00
parent 1ce129f030
commit 11a778c7af

View file

@ -4,8 +4,10 @@ args=( )
if [ ! -z "${HOSTNAME}" ]; then if [ ! -z "${HOSTNAME}" ]; then
args+=( "-n $HOSTNAME") args+=( "-n $HOSTNAME")
else
echo "HOSTNAME environment variable must be set."
exit 1
fi fi
python wsdd.py ${args} python wsdd.py ${args}