aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlav Vitters <olav@vitters.nl>2020-08-12 15:51:14 +0200
committerOlav Vitters <olav@vitters.nl>2020-08-12 15:51:14 +0200
commit4445ce640902b50e4e477cce4def371578a2cb59 (patch)
tree51e43aa973dd90fe3693ffce0de625637315c4e4
parenta4f5760ddd3d8392ccd49d41f05929689fec6209 (diff)
downloadinitscripts-4445ce640902b50e4e477cce4def371578a2cb59.tar
initscripts-4445ce640902b50e4e477cce4def371578a2cb59.tar.gz
initscripts-4445ce640902b50e4e477cce4def371578a2cb59.tar.bz2
initscripts-4445ce640902b50e4e477cce4def371578a2cb59.tar.xz
initscripts-4445ce640902b50e4e477cce4def371578a2cb59.zip
ifdown.d/vpn: shellcheck: fix various quoting issues
-rwxr-xr-xmageia/network-scripts/ifdown.d/vpn6
1 files changed, 3 insertions, 3 deletions
diff --git a/mageia/network-scripts/ifdown.d/vpn b/mageia/network-scripts/ifdown.d/vpn
index 466e54fd..f7be6435 100755
--- a/mageia/network-scripts/ifdown.d/vpn
+++ b/mageia/network-scripts/ifdown.d/vpn
@@ -1,8 +1,8 @@
#!/bin/sh
-if [ -r /etc/sysconfig/network-scripts/ifcfg-$1 ]; then
- . /etc/sysconfig/network-scripts/ifcfg-$1
+if [ -r "/etc/sysconfig/network-scripts/ifcfg-$1" ]; then
+ . "/etc/sysconfig/network-scripts/ifcfg-$1"
if [ -n "$VPN_TYPE" ] && [ -n "$VPN_NAME" ]; then
- /usr/sbin/vpn-stop $VPN_TYPE $VPN_NAME
+ /usr/sbin/vpn-stop "$VPN_TYPE" "$VPN_NAME"
fi
fi