diff --git a/compile b/compile
index 0398ea1cf78b7bded922bdf8b750a8265c7ef08e..bbe2bb7353b70978bcf82fe8f734c9988c584af5 100755
--- a/compile
+++ b/compile
@@ -21,7 +21,7 @@ elif echo "$ARCH" | grep -Ee '^arm' > /dev/null
 then
 	echo "arm arch"
 	# tweego doesn't provide arm binaries so you have to build it yourself
-	TWEEGO_PATH=devTools/tweeGo/storyFormats
+	export TWEEGO_PATH=devTools/tweeGo/storyFormats
 	tweego -o bin/FC_pregmod.html src/
 else
 	exit 2
diff --git a/compile-git b/compile-git
index c6ea31dc0bc39128c93b002545ad15475876cca4..e7c06d2d80ed5f6175056d209c10b802010f823c 100755
--- a/compile-git
+++ b/compile-git
@@ -17,7 +17,7 @@ elif echo "$ARCH" | grep -Ee '^arm' > /dev/null
 then
 	echo "arm arch"
 	# tweego doesn't provide arm binaries so you have to build it yourself
-	TWEEGO_PATH=devTools/tweeGo/storyFormats
+	export TWEEGO_PATH=devTools/tweeGo/storyFormats
 	tweego -o "bin/FC_pregmod_$HASH.html" src/
 else
 	exit 2