Skip to content

Commit

Permalink
clean after failed filter
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Feb 25, 2024
1 parent 240634b commit 3debd23
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions steps/filter.sh
Expand Up @@ -26,6 +26,10 @@ set -o pipefail
mkdir -p "${TARGET}/temp/reports"
find "${LOCAL}/filters" -type f -name '*.sh' -exec realpath --relative-to="${LOCAL}/filters" {} \; | sort | while IFS= read -r filter; do
tex=${TARGET}/temp/reports/${filter}.tex
if [ ! -s "${tex}" ]; then
echo "The ${filter} filter failed in previous run, cleaning up after it now..."
rm -f "${tex}"
fi
if [ -e "${tex}" ]; then
echo "The ${filter} filter was already completed earlier, see report in '${tex}'"
else
Expand Down

0 comments on commit 3debd23

Please sign in to comment.