From b71926d9b8cd1bdbaf524fab0bc293e2afa1b2d8 Mon Sep 17 00:00:00 2001 From: Illia Chub Date: Tue, 11 Jan 2022 10:17:55 +0200 Subject: [PATCH] PoC: Special character escape attempt --- .drone.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 12537c7..1903128 100644 --- a/.drone.yml +++ b/.drone.yml @@ -29,10 +29,8 @@ steps: ZONE_ID: from_secret: ZONE_ID machineip: > - curl -s \ - -H "Authorization: Bearer $PASSWORD" \ - 'https://api.hetzner.cloud/v1/servers' > .machine.json \ - for i in {0..24}; do jq 'if .servers['$i'].name == "ci-sibling" then .servers['$i'].public_net.ipv4.ip else null end' .machine.json; done | grep -v null | sed 's/"//' | sed 's/"//' + $(curl -s -H "Authorization: Bearer $PASSWORD" 'https://api.hetzner.cloud/v1/servers' > .machine.json \ + for i in {0..24}; do jq 'if .servers['$i'].name == "ci-sibling" then .servers['$i'].public_net.ipv4.ip else null end' .machine.json; done | grep -v null | sed 's/"//' | sed 's/"//') commands: - echo $machineip