From e5a8d2d21b4a80b7f598430978ea1ed7ad9933e4 Mon Sep 17 00:00:00 2001 From: maride Date: Thu, 27 Jun 2024 14:57:16 +0200 Subject: [PATCH] Fix: correctly check if environment variables are set --- usr/sbin/sshutterd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/sbin/sshutterd b/usr/sbin/sshutterd index ab142d3..39db244 100755 --- a/usr/sbin/sshutterd +++ b/usr/sbin/sshutterd @@ -10,7 +10,7 @@ if [ -f "/etc/sshutter.conf" ]; then fi # Check if args are given -if [ "$WHITELIST" -eq "" ] || [ "$PORT" -eq "" ] || [ "$TARGET" -eq "" ]; then +if [ "$WHITELIST" == "" ] || [ "$PORT" == "" ] || [ "$TARGET" == "" ]; 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