diff --git a/scripts/mash_run.sh b/scripts/mash_run.sh index 48aa5df..5100fd1 100755 --- a/scripts/mash_run.sh +++ b/scripts/mash_run.sh @@ -145,7 +145,7 @@ mash_run () { if [ $? -gt 0 ] then echo " -> [ERROR] mash run failed ${log}" - rm -rf $MASH_CACHE/$tag.buildlist + [ -f ${MASH_CACHE}/${tag}.buildlist ] && rm -rf $MASH_CACHE/${tag}.buildlist fi ( $optionv ) && echo " -> [INFO] mash run succeeded ${log}" }