From 69ef74a8e315c576bf95884a51787c0941ce2335 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Wed, 15 Apr 2020 09:14:31 +0100 Subject: [PATCH] fix(ci): correctly check for dry-run mode --- scripts/prune-go-cache.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/prune-go-cache.sh b/scripts/prune-go-cache.sh index 95e974f1b..797855072 100755 --- a/scripts/prune-go-cache.sh +++ b/scripts/prune-go-cache.sh @@ -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