From 27ae02f8679ca42f5400fabdda45bd5510626b9d Mon Sep 17 00:00:00 2001 From: Thomas Oulevey Date: Oct 12 2015 19:20:49 +0000 Subject: - invalid cache if mash return > 0 --- diff --git a/scripts/mash_run.sh b/scripts/mash_run.sh index dd06544..deb9974 100755 --- a/scripts/mash_run.sh +++ b/scripts/mash_run.sh @@ -129,7 +129,11 @@ mash_run () { local tag=$1 local log=$2 ${MASH} -p ${MASH_DEST}/ -o ${MASH_DEST}/ ${tag} &> ${log} - [ $? -gt 0 ] && echo " -> [ERROR] mash run failed ${log} " + if [ $? -gt 0 ] + then + echo " -> [ERROR] mash run failed ${log}" + rm -rf $MASH_CACHE/$tag.buildlist + fi ( $optionv ) && echo " -> [INFO] mash run succeeded ${log}" }