From a3afc2ae0ad0760773a1b9821a632534f32f79ee Mon Sep 17 00:00:00 2001 From: Ian McEwen Date: Sat, 29 Jun 2024 17:34:02 -0700 Subject: [PATCH] Ensure regen-protobufs works if there's no pre-existing directory to remove --- bin/regen-protobufs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/regen-protobufs.sh b/bin/regen-protobufs.sh index a41f7ba..4a3d179 100755 --- a/bin/regen-protobufs.sh +++ b/bin/regen-protobufs.sh @@ -15,7 +15,7 @@ echo "Fixing up protobuf paths in ${TMPDIR} temp directory" # Ensure a clean build -rm -r "${TMPDIR}" +[ -e "${TMPDIR}" ] && rm -r "${TMPDIR}" INDIR=${TMPDIR}/in/meshtastic/protobuf OUTDIR=${TMPDIR}/out