fix(ci): correctly check for dry-run mode

This commit is contained in:
Łukasz Mierzwa
2020-04-15 09:39:28 +01:00
committed by Łukasz Mierzwa
parent 856669736d
commit 69ef74a8e3
+1 -1
View File
@@ -10,7 +10,7 @@ GOCACHE=$(go env GOCACHE)
SIZE=`du -sxm ${GOCACHE} | awk '{print $1}'`
echo "GOCACHE size: ${SIZE}MB"
if [ "${DRY_RUN}" != "1" ] && [ "${TRAVIS_BRANCH}" == "master" ] && [ $SIZE -gt 3500 ]; then
if [ "${DRY_RUN}" == "" ] && [ "${TRAVIS_BRANCH}" == "master" ] && [ $SIZE -gt 3500 ]; then
echo "Pruning GOCACHE at ${GOCACHE}"
find "${GOCACHE}" -type f -delete
fi