diff options
author | Martin Pool <mbp@samba.org> | 2002-03-22 05:20:47 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2002-03-22 05:20:47 +0000 |
commit | dec41b556bf900e8f24e726a93a534371a007a54 (patch) | |
tree | 84e302801f9ea95f9d9292eecf850bb0ce08d51f /runtests.sh | |
parent | be2961da2c7cad6a4af440cfdf1fb902930c8b71 (diff) | |
download | android_external_rsync-dec41b556bf900e8f24e726a93a534371a007a54.tar.gz android_external_rsync-dec41b556bf900e8f24e726a93a534371a007a54.tar.bz2 android_external_rsync-dec41b556bf900e8f24e726a93a534371a007a54.zip |
Cope on systems without the whoami command.
Diffstat (limited to 'runtests.sh')
-rwxr-xr-x | runtests.sh | 7 |
1 files changed, 1 insertions, 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`" |