From 11996b984371b2d618b9dfb3d01766dd4e54b8ef Mon Sep 17 00:00:00 2001 From: binhex Date: Mon, 2 Dec 2019 13:00:30 +0000 Subject: [PATCH] fix silent fail due to set -x for no remote line --- build/root/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/root/install.sh b/build/root/install.sh index f79b734..e1496d1 100644 --- a/build/root/install.sh +++ b/build/root/install.sh @@ -167,7 +167,7 @@ if [[ $VPN_ENABLED == "yes" ]]; then /usr/local/bin/dos2unix.sh "${VPN_CONFIG}" # get first matching 'remote' line in ovpn - vpn_remote_line=$(cat "${VPN_CONFIG}" | grep -P -o -m 1 '^(\s+)?remote\s.*') + vpn_remote_line=$(cat "${VPN_CONFIG}" | grep -P -o -m 1 '^(\s+)?remote\s.*' || true) if [ -n "${vpn_remote_line}" ]; then