From 9db909baa1757166b5b3645d63059fd04d2a0d2b Mon Sep 17 00:00:00 2001 From: angristan Date: Sat, 15 Sep 2018 15:13:36 +0200 Subject: [PATCH] Interpolate strings using ${} --- openvpn-install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 2673ade..d1b9264 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -86,12 +86,12 @@ function getNIC () { function installEasyRsa () { local version='3.0.4' - wget -O ~/EasyRSA-$version.tgz https://github.com/OpenVPN/easy-rsa/releases/download/v$version/EasyRSA-$version.tgz - tar xzf ~/EasyRSA-$version.tgz -C ~/ - mv ~/EasyRSA-$version/ /etc/openvpn/ - mv /etc/openvpn/EasyRSA-$version/ /etc/openvpn/easy-rsa/ + wget -O ~/EasyRSA-${version}.tgz https://github.com/OpenVPN/easy-rsa/releases/download/v${version}/EasyRSA-${version}.tgz + tar xzf ~/EasyRSA-${version}.tgz -C ~/ + mv ~/EasyRSA-${version}/ /etc/openvpn/ + mv /etc/openvpn/EasyRSA-${version}/ /etc/openvpn/easy-rsa/ chown -R root:root /etc/openvpn/easy-rsa/ - rm -f ~/EasyRSA-$version.tgz + rm -f ~/EasyRSA-${version}.tgz } function newClient () {