diff options
author | Olav Vitters <olav@vitters.nl> | 2020-08-12 15:50:41 +0200 |
---|---|---|
committer | Olav Vitters <olav@vitters.nl> | 2020-08-12 15:50:41 +0200 |
commit | a4f5760ddd3d8392ccd49d41f05929689fec6209 (patch) | |
tree | ecd93d2ca66e6af844a10e9354570a3eebb5eed8 | |
parent | c4a887f13c7096c71494910a1ddaa626dc2a073c (diff) | |
download | initscripts-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-x | mageia/network-scripts/ifup.d/vpn | 6 |
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 |