Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
t0rr3sp3dr0 authored Nov 18, 2021
1 parent 1a8e87c commit ab78128
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions hack/install.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/sh
set -e

OS_ARCH=$(uname -m | sed 's/x86_64/amd64/g')
OS_NAME=$(uname -s | tr '[:upper:]' '[:lower:]')
PLACEMENT=${XDG_CONFIG_HOME:-$HOME/.config}/kustomize/plugin/inloco.com.br/v1/sops
PLUGIN=$PLACEMENT/SOPS
RELEASE_URL=https://github.com/inloco/sops-kustomize-generator-plugin/releases/download/v0.0.0
OS_ARCH="$(uname -m | sed 's/x86_64/amd64/g')"
OS_NAME="$(uname -s | tr '[:upper:]' '[:lower:]')"
PLACEMENT="${XDG_CONFIG_HOME:-${HOME}/.config}/kustomize/plugin/inloco.com.br/v1/sops"
PLUGIN="${PLACEMENT}/SOPS"
RELEASE_URL='https://github.com/inloco/sops-kustomize-generator-plugin/releases/download/v0.0.0'

mkdir -p $PLACEMENT
wget -O $PLUGIN ${RELEASE_URL}/plugin-${OS_NAME}-${OS_ARCH}
chmod +x $PLUGIN
mkdir -p "${PLACEMENT}"
wget -O "${PLUGIN}" "${RELEASE_URL}/plugin-${OS_NAME}-${OS_ARCH}"
chmod +x "${PLUGIN}"

0 comments on commit ab78128

Please sign in to comment.