From e624550c082a8281718c4f5e1732ffbb12a162a6 Mon Sep 17 00:00:00 2001 From: Leo Coogan Date: Mon, 2 Jun 2025 14:19:56 -0400 Subject: [PATCH] added conditional for pdf removal --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index f2a966b..e78a600 100755 --- a/build.sh +++ b/build.sh @@ -1,3 +1,3 @@ -rm *.pdf +[ -n "$(ls *.pdf 2>/dev/null)" ] && rm *.pdf OUT="cooganl-sound-hacking-v.$(git rev-list --count master).pdf" groff -R -Kutf8 -mom -Tpdf 00-front.mom 01-preface.mom 02-microsound.mom 03-convolution.mom 04-phase_vocoding.mom 05-alternative_tunings.mom > $OUT