Fix portforward script syntax error (#44)

This commit is contained in:
Juggels
2019-09-02 20:54:02 +02:00
committed by Quentin McGaw
parent c93013b097
commit 942cc7d4d1

View File

@@ -21,7 +21,7 @@ if [ "$json" == "" ]; then
fi
port=`echo $json | jq .port`
port_status_folder=`dirname "${PORT_FORWARDING_STATUS_FILE}"`
if [ ! -d "${port_status_folder}" ];
if [ ! -d "${port_status_folder}" ]; then
mkdir -p "${port_status_folder}"
fi
echo "$port" > "${PORT_FORWARDING_STATUS_FILE}"