Blinky/uploadfs.sh

7 lines
384 B
Bash
Raw Normal View History

2022-08-30 19:04:57 +00:00
#!/bin/bash
while IFS="," read -r curhost curip
do
echo "Host ${curhost} and IP ${curip}"
# Upload this image
curl --insecure --no-progress-meter --fail-with-body --request POST --url "https://espota.ctdo.de/" --header "Content-Type: multipart/form-data" --form ip="$curip" --form spiffs=@.pio/build/d1_mini/spiffs_${curhost}.bin --no-buffer
done < <(cat lastknownhostips)