From b4af6a6ead89e005195f5108d5f110d617bc88b1 Mon Sep 17 00:00:00 2001 From: Peter Buschman Date: Sun, 17 Jun 2007 14:08:42 +0000 Subject: [PATCH] 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 --- regress/tests/lib-test-root | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 " " -- 2.39.5