From 8e190b5227da0a69a37b11cc6df34cb06d5bee12 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Tue, 13 Oct 2015 01:45:57 +0000 Subject: Fix superfluous error message from stamp-date when USER environment variable contains whitespace git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2644 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- buildtools/stamp-date | 2 +- doc/HISTORY | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/buildtools/stamp-date b/buildtools/stamp-date index 808bab79..5fb6c13a 100755 --- a/buildtools/stamp-date +++ b/buildtools/stamp-date @@ -12,7 +12,7 @@ DATE=`date` LOGNAME_OR_UNKNOWN=${LOGNAME:-UNKNOWN} USER=${USER:-$LOGNAME_OR_UNKNOWN} -if [ $USER = "UNKNOWN" ]; then +if [ "$USER" = "UNKNOWN" ]; then USER=`whoami` fi diff --git a/doc/HISTORY b/doc/HISTORY index 36eeeac8..2402c447 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -6,6 +6,9 @@ CHANGE HISTORY not yet BJH Release 10.73.00 + Build: fix superfluous error message when USER environment + variable contains whitespace. + 15.09.26 BJH Release 10.72.00 Add pamunlookup . -- cgit 1.4.1