From: Mark Huang Date: Wed, 13 Apr 2005 14:46:16 +0000 (+0000) Subject: - set USER to LOGNAME if cron does not X-Git-Tag: planetlab-3_1-branch-point~17 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=4ae59088dbbc57b5d3df7ce1f8ea11c6ea3209ff;p=build.git - set USER to LOGNAME if cron does not --- 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