From cc5dbfaee94f7f7a07146e077986671a03e4fa65 Mon Sep 17 00:00:00 2001 From: Thomas Date: Jul 14 2017 15:38:36 +0000 Subject: - fix rm error if file not present. --- 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}" }