From e1b6a7b3588a6325b7709a25199ffbb7472c8c70 Mon Sep 17 00:00:00 2001 From: southerntofu Date: Thu, 17 Sep 2020 15:48:13 +0200 Subject: [PATCH] Remember that sourceless task was successfully run --- forgebuild.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/forgebuild.sh b/forgebuild.sh index 7f77308..0be2a81 100755 --- a/forgebuild.sh +++ b/forgebuild.sh @@ -190,7 +190,8 @@ for p_name in ${PROJECTS[*]}; do if [ ! -f $BASEDIR/$p_name.source ]; then # If $p_name.done exists, the task was already run [ -f $BASEDIR/$p_name.done ] && continue - run $p_name + # If the task fails, don't register the .done + run $p_name && touch $BASEDIR/$p_name.done continue fi