From 6a606838ba69272dd5009f45757a503c83eb2338 Mon Sep 17 00:00:00 2001 From: David Runge Date: Wed, 13 Feb 2019 15:27:53 +0100 Subject: scripts/autotunnel: Quoting variables. --- scripts/autotunnel | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/autotunnel b/scripts/autotunnel index 2a1f17b..0a2d8d0 100755 --- a/scripts/autotunnel +++ b/scripts/autotunnel @@ -1,5 +1,7 @@ #!/usr/bin/env bash +set -eou pipefail + if [ -z "$SERVER_ALIVE_INTERVAL" ];then SERVER_ALIVE_INTERVAL=45 fi @@ -17,5 +19,5 @@ fi -o ServerAliveInterval="$SERVER_ALIVE_INTERVAL" \ -o ServerAliveCountMax="$SERVER_ALIVE_COUNT_MAX" \ -o TCPKeepAlive=yes \ - -w $TUN_DEVICE:$TUN_DEVICE \ - $HOST + -w "$TUN_DEVICE":"$TUN_DEVICE" \ + "$HOST" -- cgit v1.2.3-70-g09d2