Keine Leerzeichen bei /bin/sh
This commit is contained in:
parent
5d373e8bbb
commit
24d80b897f
|
@ -3,8 +3,8 @@ echo "Running"
|
|||
while read line
|
||||
do
|
||||
echo "Line is ${line}"
|
||||
let curhost = $(echo ${line} | cut -d ',' -f1)
|
||||
let curip = $(echo ${line} | cut -d ',' -f2)
|
||||
curhost=$(echo ${line} | cut -d ',' -f1)
|
||||
curip=$(echo ${line} | cut -d ',' -f2)
|
||||
echo "Host ${curhost} and IP ${curip}"
|
||||
curl -m 180 --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)
|
||||
|
|
Loading…
Reference in New Issue