Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
be2961d
)
Cope on systems without the whoami command.
author
Martin Pool
<mbp@samba.org>
Fri, 22 Mar 2002 05:20:47 +0000
(
05:20
+0000)
committer
Martin Pool
<mbp@samba.org>
Fri, 22 Mar 2002 05:20:47 +0000
(
05:20
+0000)
runtests.sh
patch
|
blob
|
blame
|
history
diff --git
a/runtests.sh
b/runtests.sh
index
50f4c8b
..
397e1a0
100755
(executable)
--- a/
runtests.sh
+++ b/
runtests.sh
@@
-139,12
+139,7
@@
echo "$0 running in `pwd`"
echo " rsync_bin=$rsync_bin"
echo " srcdir=$srcdir"
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`"
echo " testuser=$testuser"
echo " os=`uname -a`"