From ac7284bd14bef7d815a19c96bf659138f22102dc Mon Sep 17 00:00:00 2001 From: starcalc Date: Tue, 30 Aug 2022 19:10:34 +0200 Subject: [PATCH] add the done --- .drone.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 4011c75..d0fcdb9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,10 +7,8 @@ steps: - name: fetch ips image: cburki/mosquitto-clients commands: - - rm -f lastknownips - - rm -f lastknownhostips - - for h in $(cat hosts); do mosquitto_sub -h raum.ctdo.de -t \"homie/${h}/\$localip\" -C 1 | tr -d '\n' >>lastknownips - - for h in $(cat hosts); do echo "${h},$(mosquitto_sub -h raum.ctdo.de -t \"homie/${h}/\$localip\" -C 1 | tr -d '\n')" >>lastknownhostips + - 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