Skip to content

Commit a3afc2a

Browse files
committed
Ensure regen-protobufs works if there's no pre-existing directory to remove
1 parent f6d1b4b commit a3afc2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/regen-protobufs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ echo "Fixing up protobuf paths in ${TMPDIR} temp directory"
1515

1616

1717
# Ensure a clean build
18-
rm -r "${TMPDIR}"
18+
[ -e "${TMPDIR}" ] && rm -r "${TMPDIR}"
1919

2020
INDIR=${TMPDIR}/in/meshtastic/protobuf
2121
OUTDIR=${TMPDIR}/out

0 commit comments

Comments
 (0)