Fix shell scripts for both linux and darwin

This commit is contained in:
Ben Meadors
2022-12-03 08:24:11 -06:00
parent c857474116
commit 7570cdbd22
2 changed files with 2 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ shift "$((OPTIND-1))"
shift
}
if [ -f "${FILENAME}" ] && [ "${FILENAME##*"update"*}" != "$FILENAME" ]; then
if [ -f "${FILENAME}" ] && [ -z "${FILENAME##*"update"*}" ]; then
printf "Trying to flash update ${FILENAME}"
$PYTHON -m esptool --baud 115200 write_flash 0x10000 ${FILENAME}
else