diff options
author | Olav Vitters <olav@vitters.nl> | 2020-08-12 15:51:14 +0200 |
---|---|---|
committer | Olav Vitters <olav@vitters.nl> | 2020-08-12 15:51:14 +0200 |
commit | 4445ce640902b50e4e477cce4def371578a2cb59 (patch) | |
tree | 51e43aa973dd90fe3693ffce0de625637315c4e4 | |
parent | a4f5760ddd3d8392ccd49d41f05929689fec6209 (diff) | |
download | initscripts-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-x | mageia/network-scripts/ifdown.d/vpn | 6 |
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 |