- set USER to LOGNAME if cron does not
authorMark Huang <mlhuang@cs.princeton.edu>
Wed, 13 Apr 2005 14:46:16 +0000 (14:46 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Wed, 13 Apr 2005 14:46:16 +0000 (14:46 +0000)
build.sh

index 835c7a3..c55bcb3 100755 (executable)
--- 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