diff --git a/setup.sh b/setup.sh
index c4ff22812dff16699b7ca9a88fc56e92ab961136..45b51388d7ae19d00cc8df4711a641be56132e8c 100755
--- a/setup.sh
+++ b/setup.sh
@@ -16,7 +16,7 @@
 set -e
 
 # Ensure the script doesn't fail on Github workflows
-TERM=${TERM:-vt100}
+export TERM=${TERM:-vt100}
 
 # Check that rustup and pip3 are installed
 check_command () {