Merge pull request #2 from edzius/master

Bugfix wsdd args concat
This commit is contained in:
Jonas Pedersen 2022-06-07 21:21:29 +02:00 committed by GitHub
commit 121dc9a59b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,20 +1,20 @@
#!/usr/bin/env bash
args=( )
args=
if [ ! -z "${HOSTNAME}" ]; then
args+=( "-n $HOSTNAME ")
args+="-n $HOSTNAME "
else
echo "HOSTNAME environment variable must be set."
exit 1
fi
if [ ! -z "${WORKGROUP}" ]; then
args+=( "-w $WORKGROUP " )
args+="-w $WORKGROUP "
fi
if [ ! -z "${DOMAIN}" ]; then
args+=( "-d $DOMAIN " )
args+="-d $DOMAIN "
fi