From: Peter Buschman Date: Sun, 17 Jun 2007 14:08:42 +0000 (+0000) Subject: Corrected /dev/nul typo and updated use of id command to be portable. X-Git-Tag: Release-7.0.0~6126 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b4af6a6ead89e005195f5108d5f110d617bc88b1;p=bacula%2Fbacula Corrected /dev/nul typo and updated use of id command to be portable. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5030 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/tests/lib-test-root b/regress/tests/lib-test-root index 4f41954a29..8431672408 100755 --- a/regress/tests/lib-test-root +++ b/regress/tests/lib-test-root @@ -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 " "