Fix conditional syntax

This commit is contained in:
Ben Meadors
2022-11-26 14:23:23 -06:00
parent b82ab34f85
commit e7dbbeb606
2 changed files with 2 additions and 2 deletions

View File

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