]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix regression on Solaris.
authorMarco van Wieringen <mvw@planets.elm.net>
Thu, 27 Oct 2011 17:29:55 +0000 (19:29 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:07 +0000 (14:50 +0200)
regress/tests/hardlink-test

index 8b82e81fe15b36f134f35f8cd97c7e0e5ce0df55..6ee0e6b5efe00a4a92b5fce56370c833c7355cbb 100755 (executable)
@@ -86,7 +86,7 @@ if [ $? -eq 0 ]; then
     estat=1
 fi
 
-nb=`awk '/\| +[1-9]/ { print $0 } ' $tmp/log4.out | wc -l`
+nb=`awk '/\| +[1-9]/ { print $0 } ' $tmp/log4.out | wc -l | sed -e 's/^ *//'`
 if [ "$nb" != 1 ]; then
     print_debug "ERROR: All selected hardlinks should have the same checksum"
     estat=1