From dec41b556bf900e8f24e726a93a534371a007a54 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Fri, 22 Mar 2002 05:20:47 +0000 Subject: [PATCH] Cope on systems without the whoami command. --- runtests.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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`" -- 2.34.1