]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Portability: Don't use export FOO=bar
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 30 May 2010 10:01:05 +0000 (12:01 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 30 May 2010 10:01:05 +0000 (12:01 +0200)
test.sh

diff --git a/test.sh b/test.sh
index 048dc7d531d5c82d18322d2e5ec33c02a875dd24..9d0ab7b40997718a44891faac13f24bddee2ffe8 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -1157,7 +1157,8 @@ EOF
         test_failed "Base dir (`pwd`) found in stderr:\n`cat stderr.txt`"
     fi
 
-    export CCACHE_NODIRECT=1
+    CCACHE_NODIRECT=1
+    export CCACHE_NODIRECT
 }
 
 compression_suite() {
@@ -1231,7 +1232,8 @@ readonly_suite() {
     unset CCACHE_NODIRECT
     files_before=`find $CCACHE_DIR -type f | wc -l`
     CCACHE_READONLY=1 CCACHE_TEMPDIR=/tmp $CCACHE $COMPILER -c test.c -o test.o
-    export CCACHE_NODIRECT=1
+    CCACHE_NODIRECT=1
+    export CCACHE_NODIRECT
     if [ $? -ne 0 ]; then
         test_failed "failure when compiling test2.c readonly"
     fi