From 4ae59088dbbc57b5d3df7ce1f8ea11c6ea3209ff Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Wed, 13 Apr 2005 14:46:16 +0000 Subject: [PATCH] - set USER to LOGNAME if cron does not --- build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 835c7a3c..c55bcb32 100755 --- a/build.sh +++ b/build.sh @@ -4,7 +4,7 @@ # crontabs to build nightly releases (default). Can also be invoked # manually to build a tagged release (-r) in the current directory. # -# $Id: build.sh,v 1.23 2005/01/11 17:04:27 mlhuang Exp $ +# $Id: build.sh,v 1.24 2005/02/14 15:09:07 mlhuang Exp $ # # Set defaults @@ -14,6 +14,9 @@ MODULE=build TAG=HEAD BASE=$PWD +# cron does not set USER? +[ -z "$USER" ] && USER=$LOGNAME + # Export certain variables export CVS_RSH -- 2.47.0