Skip to content

Commit 8ce3a46

Browse files
author
Etienne Tremel
committed
Add missing -L flag when using curl command to download release
1 parent 61e3f5a commit 8ce3a46

File tree

4 files changed

+18
-8
lines changed

4 files changed

+18
-8
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Changelog
2+
=========
3+
4+
## v0.1.1
5+
6+
- install.sh: add missing `-L` flag to curl command and do not rely on bash
7+
8+
## v0.1.0
9+
10+
- Initial release

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ build:
1717
dist:
1818
mkdir -p $(DIST)
1919
GOOS=linux GOARCH=amd64 go build -o $(BINARY) -ldflags $(LDFLAGS) ./cmd/...
20-
tar -zcvf $(DIST)/helm-monitor_linux_$(VERSION).tgz $(BINARY) README.md LICENSE plugin.yaml
20+
tar -zcvf $(DIST)/helm-monitor_linux_$(VERSION).tar.gz $(BINARY) README.md LICENSE plugin.yaml
2121
GOOS=darwin GOARCH=amd64 go build -o $(BINARY) -ldflags $(LDFLAGS) ./cmd/...
22-
tar -zcvf $(DIST)/helm-monitor_darwin_$(VERSION).tgz $(BINARY) README.md LICENSE plugin.yaml
22+
tar -zcvf $(DIST)/helm-monitor_darwin_$(VERSION).tar.gz $(BINARY) README.md LICENSE plugin.yaml
2323
GOOS=windows GOARCH=amd64 go build -o $(BINARY).exe -ldflags $(LDFLAGS) ./cmd/...
24-
tar -zcvf $(DIST)/helm-monitor_windows_$(VERSION).tgz $(BINARY).exe README.md LICENSE plugin.yaml
24+
tar -zcvf $(DIST)/helm-monitor_windows_$(VERSION).tar.gz $(BINARY).exe README.md LICENSE plugin.yaml
2525

2626
test-all: vet lint test
2727

install.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22

33
set -e
44

@@ -7,7 +7,7 @@ HELM_MONITOR_VERSION=${HELM_MONITOR_VERSION:-$current_version}
77

88
dir=${HELM_PLUGIN_DIR:-"$(helm home)/plugins/helm-monitor"}
99
os=$(uname -s | tr '[:upper:]' '[:lower:]')
10-
release_file="helm-monitor_${os}_${HELM_MONITOR_VERSION}.tgz"
10+
release_file="helm-monitor_${os}_${HELM_MONITOR_VERSION}.tar.gz"
1111
url="https://github.com/ContainerSolutions/helm-monitor/releases/download/v${HELM_MONITOR_VERSION}/${release_file}"
1212

1313
mkdir -p $dir
@@ -16,10 +16,10 @@ if command -v wget
1616
then
1717
wget -O ${dir}/${release_file} $url
1818
elif command -v curl; then
19-
curl -o ${dir}/${release_file} $url
19+
curl -L -o ${dir}/${release_file} $url
2020
fi
2121

22-
tar xf ${dir}/${release_file} -C $dir
22+
tar xvf ${dir}/${release_file} -C $dir
2323

2424
chmod +x ${dir}/helm-monitor
2525

plugin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: "monitor"
3-
version: "0.1.0"
3+
version: "0.1.1"
44
usage: "monitor and rollback in case of failure based on metrics or logs"
55
description: |-
66
Query at a given interval a Prometheus or ElasticSearch instance, a rollback

0 commit comments

Comments
 (0)