]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Portability: Define PWD if not defined
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 28 Feb 2010 09:30:03 +0000 (10:30 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 28 Feb 2010 09:30:03 +0000 (10:30 +0100)
test.sh

diff --git a/test.sh b/test.sh
index fcaf4fb70888e527c13132017db3b21bdcfee14e..870092906a8e7ea957516bc81379c1086855ddc0 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -25,6 +25,10 @@ else
     COMPILER=cc
 fi
 
+if [ "x$PWD" = x ]; then
+    PWD=`pwd`
+fi
+
 if [ -z "$CCACHE" ]; then
     CCACHE=$PWD/ccache
 fi