From 25b21ec33b5e5647d3695a5f27d52875e3dfffd2 Mon Sep 17 00:00:00 2001 From: starcalc Date: Tue, 30 Aug 2022 19:17:34 +0200 Subject: [PATCH] Two echos --- .drone.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 6c126e8..55aabbe 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,10 +7,11 @@ steps: - name: fetch ips image: cburki/mosquitto-clients commands: + - #mosquitto_sub -h raum.ctdo.de -t "homie/blinky1/\$localip" -C 1 - cat hosts - - for h in $(cat hosts); do echo $h; echo ${h}; done - - for h in $(cat hosts); do mosquitto_sub -h raum.ctdo.de -t \"homie/$h/\$localip\" -C 1 | tr -d '\n'; done >lastknownips - - for h in $(cat hosts); do echo "${h},$(mosquitto_sub -h raum.ctdo.de -t \"homie/$h/\$localip\" -C 1 | tr -d '\n')"; done >lastknownhostips + - for h in $(cat hosts); do echo $h; echo $h; done + - for h in $(cat hosts); do mosquitto_sub -h raum.ctdo.de -t "homie/$h/\$localip" -C 1 | tr -d '\n'; done >lastknownips + - for h in $(cat hosts); do echo -n "$h,"; mosquitto_sub -h raum.ctdo.de -t "homie/$h/\$localip" -C 1 | tr -d '\n'; done >lastknownhostips # - mosquitto_sub -h raum.ctdo.de -t "homie/${HOST}/\$localip" -C 1 | tr -d '\n' # - mosquitto_sub -h raum.ctdo.de -t "homie/${HOST}/\$localip" -C 1 | tr -d '\n' >lastknownip - cat lastknownips