From 3b6b5c520b52f34433f87332d6852ad6a7ad0a75 Mon Sep 17 00:00:00 2001 From: starcalc Date: Tue, 6 Sep 2022 21:21:06 +0200 Subject: [PATCH] s/cat/echo/g --- uploadfs.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uploadfs.sh b/uploadfs.sh index 9a2d095..fa85551 100644 --- a/uploadfs.sh +++ b/uploadfs.sh @@ -3,8 +3,8 @@ echo "Running" while read line do echo "Line is ${line}" - curhost = $(cat ${line} | cut -d ',' -f1) - curip = $(cat ${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)