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