diff --git a/deploy/update.sh b/deploy/update.sh index 933e293..05d026b 100755 --- a/deploy/update.sh +++ b/deploy/update.sh @@ -16,6 +16,10 @@ ROOT=$(pwd) MAKE=${MAKE:-make} PULL=${PULL:-1} WHAT=${1:-auto} +# `make update` exported the commit it started on (the Makefile's ANYBOT_GIT_COMMIT, read before +# the pull below): left there, the program built after the pull says it is the old version. The +# build works it out again (also when this script runs again as its newer self). +unset ANYBOT_GIT_COMMIT if [ -t 1 ]; then B=$(printf '\033[1m'); D=$(printf '\033[90m'); G=$(printf '\033[32m'); Y=$(printf '\033[33m'); R=$(printf '\033[31m'); C=$(printf '\033[36m'); N=$(printf '\033[0m') else B=; D=; G=; Y=; R=; C=; N=; fi