From 05b9e20025e37da990d6b81b47c1e0734d2ddd00 Mon Sep 17 00:00:00 2001 From: niansa Date: Sat, 6 Jan 2018 16:13:01 +0100 Subject: [PATCH] Update start-socat.sh --- start-socat.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/start-socat.sh b/start-socat.sh index b39a1a5..76ee285 100644 --- a/start-socat.sh +++ b/start-socat.sh @@ -5,7 +5,11 @@ This program comes with ABSOLUTELY NO WARRANTY; for details read "'"$(pwd)/LICEN This is free software, and you are welcome to redistribute it under certain conditions; read "'"$(pwd)/LICENSE"'" for details. ' -test -f ./config.sh || (echo "Configuration file missing!!!" ; exit 1) +if [ -f ./config.sh ]; then + echo "Configuration file missing!!!" + exit 1 +fi + . ./config.sh echo "Listening at Port $PORT" if [ "$1" = "-d" -o "$1" = "--daemon" ]; then