From 1f92adc1951c6a31fa15ac39aa2089c62a6dcf61 Mon Sep 17 00:00:00 2001 From: Ollo Date: Mon, 8 Feb 2021 19:51:54 +0100 Subject: [PATCH] Subfolder does not exist on esp8266 --- tools/initialDietFlash.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/initialDietFlash.sh b/tools/initialDietFlash.sh index f5ede3e..70f8b71 100755 --- a/tools/initialDietFlash.sh +++ b/tools/initialDietFlash.sh @@ -68,8 +68,10 @@ for f in $FILES; do echo "place the terminal into the folder where the lua files are present" exit 1 fi - echo "------------- $f ------------" - python3 $LUATOOL -p $DEVICE -f $f -b $BAUD -t $f + + espFile=$(echo "$f" | sed 's;diet/;;g') + echo "------------- $espFile ------------" + python3 $LUATOOL -p $DEVICE -f $f -b $BAUD -t $espFile if [ $? -ne 0 ]; then echo "STOOOOP" exit 1