From 745aa41d13158d92cb2716a241fbb24315dece04 Mon Sep 17 00:00:00 2001 From: Illia Chub Date: Tue, 11 Jan 2022 14:58:54 +0200 Subject: [PATCH] PoC: Special character escape attempt --- .drone.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index d914844..34ce93e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -32,9 +32,8 @@ steps: commands: - > curl -s -H "Authorization: Bearer $PASSWORD" 'https://api.hetzner.cloud/v1/servers' > .machine.json - - cat .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/"//') + 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/"//' - > export machineip=$(cat .machine.json); - >