From 96b2c3201ad021d57f2988a3b714d420d02f11d0 Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Sun, 8 Nov 2015 09:49:58 +0100 Subject: [PATCH] Add a purgecache command to the songbook bash --- songbook | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/songbook b/songbook index f4850774..bba8cbdf 100755 --- a/songbook +++ b/songbook @@ -3,4 +3,8 @@ # Do not edit this file. This file is just a helper file for development test. # It is not part of the distributed software. -python -m patacrep.songbook $* +if [ $1 = "purgecache" ]; then + find . -name ".cache" -type d -print -exec rm -r {} + +else + python -m patacrep.songbook $* +fi