Skip to content
This repository has been archived by the owner on Mar 24, 2022. It is now read-only.

Commit

Permalink
Get previous blob name without trailing whitespace
Browse files Browse the repository at this point in the history
* Also make the file executable

[#151767405]

Signed-off-by: Akshay Mankar <[email protected]>
  • Loading branch information
iainsproat authored and Akshay Mankar committed Nov 27, 2017
1 parent fdcb03e commit 4a40955
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/bump_etcd_version
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 4a40955

Please sign in to comment.