diff --git a/board/raspberrypi/post-image.sh b/board/raspberrypi/post-image.sh index e4611d05dd..a3a2d8d620 100755 --- a/board/raspberrypi/post-image.sh +++ b/board/raspberrypi/post-image.sh @@ -13,6 +13,8 @@ if [ ! -e "${GENIMAGE_CFG}" ]; then FILES=() for i in "${BINARIES_DIR}"/*.dtb "${BINARIES_DIR}"/rpi-firmware/*; do + # ignore literal globs that didn't match anything + [ -e "${i}" ] || continue FILES+=( "${i#${BINARIES_DIR}/}" ) done