From ad7f68e3861e681e2847f608b7de2309edcc0484 Mon Sep 17 00:00:00 2001 From: Mike Morris Date: Wed, 21 Jan 2015 15:16:52 -0500 Subject: [PATCH] simplify clear_sqlite_cache --- Makefile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index f760ccca7..3bb8e2d8f 100644 --- a/Makefile +++ b/Makefile @@ -148,15 +148,9 @@ lproj: build/linux/mapboxgl-app.xcodeproj .PHONY: clear_sqlite_cache clear_sqlite_cache: ifeq ($(PLATFORM), osx) - if [ -e ~/Library/Application\ Support/Mapbox\ GL/cache.db ]; then \ - echo 'removing ~/Library/Application\ Support/Mapbox\ GL/cache.db'; \ - rm ~/Library/Application\ Support/Mapbox\ GL/cache.db; \ - fi + rm -f ~/Library/Application\ Support/Mapbox\ GL/cache.db else - if [ -e /tmp/mbgl-cache.db ]; then \ - echo 'removing /tmp/mbgl-cache.db'; \ - rm /tmp/mbgl-cache.db; \ - fi + rm -f /tmp/mbgl-cache.db endif clean: clear_sqlite_cache clear_xcode_cache