From: Martin Pool Date: Fri, 22 Mar 2002 05:20:47 +0000 (+0000) Subject: Cope on systems without the whoami command. X-Git-Tag: v2.5.5.rc1~31 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dec41b556bf900e8f24e726a93a534371a007a54;p=thirdparty%2Frsync.git Cope on systems without the whoami command. --- diff --git a/runtests.sh b/runtests.sh index 50f4c8bc..397e1a01 100755 --- a/runtests.sh +++ b/runtests.sh @@ -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`"