1
0
Fork 0

undo if/else

This commit is contained in:
Sander Bollen 2020-03-06 23:42:44 +01:00
parent f06d174012
commit c373fd500f

View file

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