a5d8d437fd8a70311ca85fb0f9ce8b27fbe1c459
hiram
  Sat Jun 13 22:58:10 2026 -0700
correct email address for error message

diff --git src/hg/utils/otto/sandboxupdate src/hg/utils/otto/sandboxupdate
index b6d27cfbb96..03f4896802b 100755
--- src/hg/utils/otto/sandboxupdate
+++ src/hg/utils/otto/sandboxupdate
@@ -1,38 +1,39 @@
 #!/bin/bash
 
 #	Script to rebuild the current user's sandbox
 
 #	Set environment
 umask 002
-MACHTYPE=`uname -m`
-PATH=/usr/local/bin:/bin:/usr/bin:/cluster/bin/${MACHTYPE}:${HOME}/bin/${MACHTPE}:/cluster/bin:/cluster/bin/scripts:${HOME}/bin:${HOME}/bin/scripts/
-export MACHTYPE PATH
+export MACHTYPE=`uname -m`
+export PATH=/usr/local/bin:/bin:/usr/bin:/cluster/bin/${MACHTYPE}:${HOME}/bin/${MACHTYPE}:/cluster/bin:/cluster/bin/scripts:${HOME}/bin:${HOME}/bin/scripts/
 if [ -z "${USER}" ]; then
-	USER=${otto}
+	USER="otto"
 	export USER
 fi
 
 #	Clean up the source tree
 #cd $HOME/kent/src && make clean > /dev/null 2> /dev/null && rm -f tags
 
 #	Update the source tree
 cd $HOME/kent
 git pull > $HOME/git.pull.output 2>&1
 if [ $? -ne 0 ]; then
     echo "git pull failed, see $HOME/git.pull.output" | \
-		mail -s 'Git pull error on kent tree' ${otto}
+        mail -s 'Git pull error on kent tree' "gbauto@ucsc.edu"
+    printf "git pull failed, see $HOME/git.pull.output\n" 1>&2
+    exit 255
 fi
 
 #	Build the CGIs
 #cd ~/kent/src
 #make -j 40 cgi > ~/daily.out 2>&1
 #	If there are any errors, they will come via separate email from cron
 #egrep -y "erro|warn" ~/daily.out | grep -v "\-Werror" | \
 #	grep -v "gbWarn.o" | grep -v "disabling jobserver mode"
 #make tags-all >/dev/null 2>&1
 
 #	Update htdocs
 #cd ~/kent/src/hg/htdocs
 #make user >/dev/null 2>&1
 
 #	Update trackDb