Skip to content

Commit 7fd1320

Browse files
committed
Make debug_kit.sqlite clearing conditional
1 parent da9f49a commit 7fd1320

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

cache-clear

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ if [ "$1" = '-h' ]; then
2525
usage
2626
fi
2727

28+
DIR="$( cd -P "$( dirname "$0" )"/.. >/dev/null 2>&1 && pwd )"
2829

2930
echo "## Clearing cache folders.";
30-
3131
bin/cake cache clear_all
3232

33-
echo "## Removing DebugKit SQLite file.";
34-
35-
DIR="$( cd -P "$( dirname "$0" )"/.. >/dev/null 2>&1 && pwd )"
36-
rm $DIR/tmp/debug_kit.sqlite
33+
if [ -e "$DIR/tmp/debug_kit.sqlite" ]; then
34+
echo "## Removing DebugKit SQLite file.";
35+
rm $DIR/tmp/debug_kit.sqlite
36+
fi

0 commit comments

Comments
 (0)