aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlav Vitters <olav@vitters.nl>2020-08-12 15:50:41 +0200
committerOlav Vitters <olav@vitters.nl>2020-08-12 15:50:41 +0200
commita4f5760ddd3d8392ccd49d41f05929689fec6209 (patch)
treeecd93d2ca66e6af844a10e9354570a3eebb5eed8
parentc4a887f13c7096c71494910a1ddaa626dc2a073c (diff)
downloadinitscripts-a4f5760ddd3d8392ccd49d41f05929689fec6209.tar
initscripts-a4f5760ddd3d8392ccd49d41f05929689fec6209.tar.gz
initscripts-a4f5760ddd3d8392ccd49d41f05929689fec6209.tar.bz2
initscripts-a4f5760ddd3d8392ccd49d41f05929689fec6209.tar.xz
initscripts-a4f5760ddd3d8392ccd49d41f05929689fec6209.zip
ifup.d/vpn: shellcheck: fix various quoting issues
-rwxr-xr-xmageia/network-scripts/ifup.d/vpn6
1 files changed, 3 insertions, 3 deletions
diff --git a/mageia/network-scripts/ifup.d/vpn b/mageia/network-scripts/ifup.d/vpn
index 4425d154..ccdf68dd 100755
--- a/mageia/network-scripts/ifup.d/vpn
+++ b/mageia/network-scripts/ifup.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-start $VPN_TYPE "$VPN_NAME"
+ /usr/sbin/vpn-start "$VPN_TYPE" "$VPN_NAME"
fi
fi