From 4a409551e863d25ece91fead9b84cfb29df14b1e Mon Sep 17 00:00:00 2001 From: Iain Sproat Date: Mon, 27 Nov 2017 11:48:30 +0000 Subject: [PATCH] Get previous blob name without trailing whitespace * Also make the file executable [#151767405] Signed-off-by: Akshay Mankar --- scripts/bump_etcd_version | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 scripts/bump_etcd_version diff --git a/scripts/bump_etcd_version b/scripts/bump_etcd_version old mode 100644 new mode 100755 index 4bd3efa..e122579 --- a/scripts/bump_etcd_version +++ b/scripts/bump_etcd_version @@ -26,9 +26,10 @@ main() { remove_previous_blob() { local previous_blob_name - previous_blob_name=$(bosh blobs --column path | grep etcd ) + previous_blob_name=$(bosh blobs --json | jq -r .Tables[].Rows[].path | grep etcd) bosh remove-blob "${previous_blob_name}" } + download() { local binary_name staging_dir etcd_version binary_name="$1"