Skip to content

Instantly share code, notes, and snippets.

View xaethos's full-sized avatar

Diego Garcia xaethos

View GitHub Profile
@xaethos
xaethos / fly-edit-pipeline
Created September 6, 2016 03:43
Bash script to fetch, edit, and write back a Concourse pipeline
#!/bin/bash
set -euo pipefail
TARGET=${1:-}
PIPELINE=${2:-}
FLY=$(which fly)
TEMPDIR=$(mktemp -d -t concourse)
cleanup() {