From a4f5760ddd3d8392ccd49d41f05929689fec6209 Mon Sep 17 00:00:00 2001 From: Olav Vitters Date: Wed, 12 Aug 2020 15:50:41 +0200 Subject: ifup.d/vpn: shellcheck: fix various quoting issues --- mageia/network-scripts/ifup.d/vpn | 6 +++--- 1 file 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 -- cgit v1.2.1