]> git.infradead.org Git - users/dwmw2/vpnc-scripts.git/commitdiff
Fix stderr redirection for 'which ip' output
authorDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 9 Dec 2011 13:13:10 +0000 (13:13 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 9 Dec 2011 13:13:10 +0000 (13:13 +0000)
We really want to redirect stderr from 'which'; not from 'grep'.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
vpnc-script

index f31e86c316d21416c73d2ce5e358f7c1a944aa21..4e2f68d3635a12bb03a028678e3962962a3caabd 100755 (executable)
@@ -59,7 +59,7 @@ if [ ! -d "/var/run/vpnc" ]; then
 fi
 
 # stupid SunOS: no blubber in /usr/local/bin ... (on stdout)
-IPROUTE="`which ip | grep '^/' 2> /dev/null`"
+IPROUTE="`which ip | grep '^/'`" 2> /dev/null
 
 if [ "$OS" = "Linux" ]; then
        ifconfig_syntax_ptp="pointopoint"