Compare commits
No commits in common. "e5a8d2d21b4a80b7f598430978ea1ed7ad9933e4" and "6c9245be0a6600800cb5753db621bc1f9eb8ded5" have entirely different histories.
e5a8d2d21b
...
6c9245be0a
@ -1,4 +1,4 @@
|
||||
#!/bin/bash -e
|
||||
#!/bin/bash
|
||||
|
||||
function log {
|
||||
echo "$(date +'%Y-%m-%d %H:%M:%S') $@"
|
||||
@ -10,7 +10,7 @@ if [ -f "/etc/sshutter.conf" ]; then
|
||||
fi
|
||||
|
||||
# Check if args are given
|
||||
if [ "$WHITELIST" == "" ] || [ "$PORT" == "" ] || [ "$TARGET" == "" ]; then
|
||||
if [ "$WHITELIST" -eq "" ] || [ "$PORT" -eq "" ] || [ "$TARGET" -eq "" ]; then
|
||||
echo "Error: you need to specify WHITELIST, PORT and TARGET, either in /etc/sshutter.conf or through environment variables." 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user