s/cat/echo/g
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
d142b45af4
commit
3b6b5c520b
|
@ -3,8 +3,8 @@ echo "Running"
|
||||||
while read line
|
while read line
|
||||||
do
|
do
|
||||||
echo "Line is ${line}"
|
echo "Line is ${line}"
|
||||||
curhost = $(cat ${line} | cut -d ',' -f1)
|
curhost = $(echo ${line} | cut -d ',' -f1)
|
||||||
curip = $(cat ${line} | cut -d ',' -f2)
|
curip = $(echo ${line} | cut -d ',' -f2)
|
||||||
echo "Host ${curhost} and IP ${curip}"
|
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
|
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)
|
done < <(cat lastknownhostips)
|
||||||
|
|
Loading…
Reference in New Issue