From 92381fc2a6f8be2591057d252571fe4398102f6e Mon Sep 17 00:00:00 2001 From: 4s3ti <4s3ti@protonmail.com> Date: Wed, 8 Jan 2020 02:12:13 +0100 Subject: [PATCH] Removed echos Removed echos i have introduced before exits, for the *dumb* obvious reasons were causing script to exit. --- auto_install/install.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/auto_install/install.sh b/auto_install/install.sh index 9b00593..a12b2d0 100755 --- a/auto_install/install.sh +++ b/auto_install/install.sh @@ -1006,9 +1006,7 @@ installWireGuard(){ echo "done!" ## || exits if cd fails. - cd /usr/src/wireguard-tools-"${WG_TOOLS_SNAPSHOT}/src" || \ - echo "::: Installation Failed could not cd into /usr/src/wireguard-tools"; \ - exit 1 + cd /usr/src/wireguard-tools-"${WG_TOOLS_SNAPSHOT}/src" || exit 1 # We install the userspace tools manually since DKMS only compiles and # installs the kernel module @@ -1529,8 +1527,7 @@ confOpenVPN(){ $SUDO mkdir /etc/openvpn/easy-rsa/pki $SUDO chmod 700 /etc/openvpn/easy-rsa/pki - cd /etc/openvpn/easy-rsa || \ - echo "::: Error, Could not cd /etc/openvpn/easy-rsa"; exit 1 + cd /etc/openvpn/easy-rsa || exit 1 # Write out new vars file echo "if [ -z \"\$EASYRSA_CALLER\" ]; then