Removed echos

Removed echos i have introduced before exits,
for the *dumb* obvious reasons were causing script to exit.
This commit is contained in:
4s3ti 2020-01-08 02:12:13 +01:00
parent e6fdfd29b7
commit 92381fc2a6

View file

@ -1006,9 +1006,7 @@ installWireGuard(){
echo "done!" echo "done!"
## || exits if cd fails. ## || exits if cd fails.
cd /usr/src/wireguard-tools-"${WG_TOOLS_SNAPSHOT}/src" || \ cd /usr/src/wireguard-tools-"${WG_TOOLS_SNAPSHOT}/src" || exit 1
echo "::: Installation Failed could not cd into /usr/src/wireguard-tools"; \
exit 1
# We install the userspace tools manually since DKMS only compiles and # We install the userspace tools manually since DKMS only compiles and
# installs the kernel module # installs the kernel module
@ -1529,8 +1527,7 @@ confOpenVPN(){
$SUDO mkdir /etc/openvpn/easy-rsa/pki $SUDO mkdir /etc/openvpn/easy-rsa/pki
$SUDO chmod 700 /etc/openvpn/easy-rsa/pki $SUDO chmod 700 /etc/openvpn/easy-rsa/pki
cd /etc/openvpn/easy-rsa || \ cd /etc/openvpn/easy-rsa || exit 1
echo "::: Error, Could not cd /etc/openvpn/easy-rsa"; exit 1
# Write out new vars file # Write out new vars file
echo "if [ -z \"\$EASYRSA_CALLER\" ]; then echo "if [ -z \"\$EASYRSA_CALLER\" ]; then