Fail if HOSTNAME variable not set.
This commit is contained in:
parent
1ce129f030
commit
11a778c7af
1 changed files with 3 additions and 1 deletions
|
@ -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}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue