Upload via sh, not bash
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
89bde565eb
commit
43f3ac6563
16
uploadfs.sh
16
uploadfs.sh
|
@ -1,7 +1,17 @@
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
while IFS="," read -r curhost curip
|
|
||||||
|
while read line
|
||||||
do
|
do
|
||||||
|
echo "Line is ${line}"
|
||||||
|
curhost = $(cat ${line} | cut -d ',' -f1)
|
||||||
|
curip = $(cat ${line} | cut -d ',' -f2)
|
||||||
echo "Host ${curhost} and IP ${curip}"
|
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
|
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)
|
done < <(cat lastknownhostips)
|
||||||
|
#!/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)
|
Loading…
Reference in New Issue