# Go to the home directory whenever we su to a package user.
cd
-# Maybe check if the build script can be updated.
-if [ ${CHECKUPDATES} -eq 1 ]; then
+
+# Maybe check if the build script can be updated, but not on dumb
+# terms so that TRAMP still works.
+if [ ${CHECKUPDATES} -eq 1 -a "$TERM" != "dumb" ]; then
checkupdates
fi