]> git.sur5r.net Git - bacula/bacula/commitdiff
Corrected /dev/nul typo and updated use of id command to be portable.
authorPeter Buschman <peterb@iotk.com>
Sun, 17 Jun 2007 14:08:42 +0000 (14:08 +0000)
committerPeter Buschman <peterb@iotk.com>
Sun, 17 Jun 2007 14:08:42 +0000 (14:08 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5030 91ce42f0-d328-0410-95d8-f526ca767f89

regress/tests/lib-test-root

index 4f41954a2963642b5000dc5ad1614480b6270aca..8431672408a885dadce2aca36d41208e8481ba52 100755 (executable)
@@ -3,7 +3,7 @@
 # Run a simple backup of the Bacula build directory
 #   then restore it.
 #
-MUID=`/usr/bin/id -u`
+MUID=`/usr/bin/id | awk -F= '{print $2}' | awk -F\( '{print $1}'`
 if [ $MUID != 0 ] ; then
    echo " "
    echo "You must be root to run this test."
@@ -62,7 +62,7 @@ sort <1 >restored
 rm -f 1
 #
 cd ${cwd}
-diff tmp/original tmp/restored 2>&1 1>/dev/nul
+diff tmp/original tmp/restored 2>&1 1>/dev/null
 if [ $? != 0 ] ; then
    echo " "
    echo " "