From 46c2b9789d29faddd02971b7fee298c93e14800b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?= Date: Wed, 17 Apr 2019 13:33:04 +0200 Subject: [PATCH] qubes-updates-proxy: make ShellCheck happy --- vm-init.d/qubes-updates-proxy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vm-init.d/qubes-updates-proxy b/vm-init.d/qubes-updates-proxy index d55421d..d4353f8 100755 --- a/vm-init.d/qubes-updates-proxy +++ b/vm-init.d/qubes-updates-proxy @@ -29,7 +29,7 @@ [ "$NETWORKING" = "no" ] && exit 0 exec="$(command -v tinyproxy)" -prog=$(basename $exec) +prog=$(basename "$exec") config="/etc/tinyproxy/tinyproxy-updates.conf" pidfile="/var/run/tinyproxy-updates/tinyproxy.pid" @@ -46,14 +46,14 @@ start() { exit 0 fi - [ -x $exec ] || exit 5 + [ -x "$exec" ] || exit 5 [ -f $config ] || exit 6 # setup network redirection /sbin/iptables -I INPUT -i vif+ -p tcp --dport 8082 -j ACCEPT /sbin/iptables -t nat -A PR-QBS-SERVICES -i vif+ -d 10.137.255.254 -p tcp --dport 8082 -j REDIRECT echo -n $"Starting $prog (as Qubes updates proxy): " - daemon $exec -c $config + daemon "$exec" -c $config retval=$? echo [ $retval -eq 0 ] && touch $lockfile