]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Cope on systems without the whoami command.
authorMartin Pool <mbp@samba.org>
Fri, 22 Mar 2002 05:20:47 +0000 (05:20 +0000)
committerMartin Pool <mbp@samba.org>
Fri, 22 Mar 2002 05:20:47 +0000 (05:20 +0000)
runtests.sh

index 50f4c8bc877bf16b5caa4c670a34f01c5fbb5771..397e1a0170ba4756aaab2f7020ba5d94973d028c 100755 (executable)
@@ -139,12 +139,7 @@ echo "$0 running in `pwd`"
 echo "    rsync_bin=$rsync_bin"
 echo "    srcdir=$srcdir"
 
-if testuser=`whoami`
-then
-    :
-else 
-    testuser='(unknown)'
-fi
+testuser=`whoami || echo UNKNOWN`
 
 echo "    testuser=$testuser"
 echo "    os=`uname -a`"