Merge pull request #1999 from meshtastic/master

Fix conditional syntax
This commit is contained in:
Ben Meadors authored and GitHub committed 2022-11-26 15:09:56 -06:00
commit 4dc7d92cf1
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -45,7 +45,7 @@ shift "$((OPTIND-1))"
shift
}
if [ -f "${FILENAME}" ] && [ "${FILENAME}" != *"update"* ]; then
if [ -f "${FILENAME}" ] && [[ "${FILENAME}" != *"update"* ]]; then
echo "Trying to flash ${FILENAME}, but first erasing and writing system information"
"$PYTHON" -m esptool erase_flash
"$PYTHON" -m esptool write_flash 0x00 ${FILENAME}
+1 -1
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