From 634f4f3be8b27a4dc021ee917aee8defdfedf7ff Mon Sep 17 00:00:00 2001 From: starcalc Date: Tue, 30 Aug 2022 19:13:21 +0200 Subject: [PATCH] more debug output --- .drone.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index b396900..6c126e8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,8 +8,9 @@ steps: image: cburki/mosquitto-clients commands: - cat hosts - - 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 "${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