From: Martin Pool Date: Fri, 22 Mar 2002 05:20:47 +0000 (+0000) Subject: Cope on systems without the whoami command. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/dec41b556bf900e8f24e726a93a534371a007a54 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`"