From 552c33e89b9a7284461c7585487ccfe7793cce2c Mon Sep 17 00:00:00 2001 From: "Max P." Date: Wed, 9 Jul 2025 21:40:43 +0200 Subject: [PATCH] chore: Allow script to continue despite errors - The `|| true` ensures the script continues even if the increment operation fails. This prevents the script from halting if `CONVERTED` is unset. --- scripts/convert-md-tree.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 scripts/convert-md-tree.sh diff --git a/scripts/convert-md-tree.sh b/scripts/convert-md-tree.sh old mode 100644 new mode 100755 index 420d891..cc9e2b4 --- a/scripts/convert-md-tree.sh +++ b/scripts/convert-md-tree.sh @@ -89,7 +89,7 @@ while IFS= read -r -d '' FILE; do pandoc $PANDOC_ARGS "$FILE" -s -o "$OUT_FILE" echo "✅ Converted: $FILE -> $OUT_FILE" fi - ((CONVERTED++)) + ((CONVERTED++)) || true done < <(find "$SRC" -type f -name '*.md' -print0) if $DRY_RUN; then