diff --git a/get_modules.sh b/get_modules.sh
index 728d9457b271bc04f3e032f07f1ad67ff1fc4a78..80461cdb7483c0b73dd22687936d3a60130ca6c5 100755
--- a/get_modules.sh
+++ b/get_modules.sh
@@ -16,7 +16,7 @@ if hostname -f | grep -q "bullx"; then
   ml --show-hidden -t --redirect avail | awk '{print $1 ",1"}' | grep -v -e '/,\|:' | sort -u > anselm.csv
   ./modules.py > anselm.md
 else
-  ml --show-hidden -t --redirect avail | awk '{print $1 ",2"}' | grep -v -e '/,\|:' | sort -u > salomon.csv
+  LMOD_REDIRECT=yes ml --show-hidden -t --redirect avail | awk '{print $1 ",2"}' | grep -v -e '/,\|:' | sort -u > salomon.csv
   ./modules.py > salomon.md
 
   for resource in "/appsuv/modules,uv2000" "/apps/phi/modules,phi"