undo if/else
This commit is contained in:
parent
f06d174012
commit
c373fd500f
|
@ -1,14 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# if a command was specified, we run that command. E.g. helpful when we do
|
/opt/fahclient/FAHClient \
|
||||||
# docker run -it <container> /bin/bash
|
|
||||||
if [ "${1}" ]
|
|
||||||
then
|
|
||||||
exec "$@"
|
|
||||||
# otherwise we attempt to run fahclient.
|
|
||||||
else
|
|
||||||
/opt/fahclient/FAHClient \
|
|
||||||
--user="${USER}" \
|
--user="${USER}" \
|
||||||
--team="${TEAM}" \
|
--team="${TEAM}" \
|
||||||
--passkey="${PASSKEY}" \
|
--passkey="${PASSKEY}" \
|
||||||
|
@ -17,4 +10,3 @@ else
|
||||||
--power=full \
|
--power=full \
|
||||||
--gui-enabled=false \
|
--gui-enabled=false \
|
||||||
"${@}"
|
"${@}"
|
||||||
fi
|
|
||||||
|
|
Loading…
Reference in a new issue