travis-ci: don't repeat the path of the cache directory
[gitweb.git] / ci / run-linux32-build.sh
index 248183982be53af836feb296755d56ceccfb0c18..d020b762ca625d6f4ff445addc4469f89fb41625 100755 (executable)
@@ -28,7 +28,7 @@ test -z $HOST_UID || (CI_USER="ci" && useradd -u $HOST_UID $CI_USER)
 linux32 --32bit i386 su -m -l $CI_USER -c '
        set -ex
        cd /usr/src/git
-       ln -s /tmp/travis-cache/.prove t/.prove
+       test -n "$cache_dir" && ln -s "$cache_dir/.prove" t/.prove
        make --jobs=2
        make --quiet test
 '