Commit cf767caf authored by Matthew Smith's avatar Matthew Smith
Browse files

Fix bug in echo that caused error on exit

Do you want to email this .ovpn file now (y/n)n
/usr/lib/openvpn-server/ovs-commands/build-generic-client: line 93: syntax error near unexpected token `echo'
parent 1a880ec7
......@@ -37,7 +37,7 @@ function allocate_ip {
export $OVPN_ORGNICK
/usr/lib/openvpn-server/ovs-commands/make-static-ip $OVPN_COMMONNAME
else
echo -n
echo -n ""
fi
}
......
......@@ -71,3 +71,5 @@ fi
rm -rf $WORKDIR
allocate_ip()
echo "Your OpenVPN config file is ${OVPNFILE}"
......@@ -85,9 +85,9 @@ if [ "$EMAIL" = "y" ]; then
#EOM
uuencode $OVPNFILE $OVPNFILE | bsd-mailx -s "OpenVPN Client $OVPN_COMMONNAME" $EMAILADDRESS
else
echo -n
echo -n ""
fi
allocate_ip()
echo "Your OpenVPN config file is $OVPNFILE"
echo "Your OpenVPN config file is ${OVPNFILE}"
......@@ -60,4 +60,6 @@ rm -rf $WORKDIR
allocate_ip()
echo "Your OpenVPN config file is ${OVPNFILE}"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment