Skip to content

Commit

Permalink
Download with curl if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
hypnoglow committed Oct 3, 2017
1 parent 7d4bf1b commit 88f6b3f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "s3"
version: "0.2.0"
version: "0.2.1"
usage: "The plugin allows to use s3 protocol to upload, fetch charts and to work with repositories."
description: |-
Provides AWS S3 protocol support.
Expand All @@ -11,4 +11,4 @@ downloaders:
- "s3"
hooks:
install: "cd $HELM_PLUGIN_DIR; make install"
update: "cd $HELM_PLUGIN_DIR; make install"
update: "cd $HELM_PLUGIN_DIR; make install"
7 changes: 6 additions & 1 deletion sh/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ fi
mkdir -p "bin"
mkdir -p "releases/v${version}"

wget -q "${url}" -O "releases/v${version}.tar.gz"
# Download with curl if possible.
if [ -x "$(which curl 2>/dev/null)" ]; then
curl -sSL "${url}" -o "releases/v${version}.tar.gz"
else
wget -q "${url}" -O "releases/v${version}.tar.gz"
fi
tar xzf "releases/v${version}.tar.gz" -C "releases/v${version}"
mv "releases/v${version}/bin/helms3" "bin/helms3"

0 comments on commit 88f6b3f

Please sign in to comment.