Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Commit

Permalink
Replace use of $GOOS & $GOARCH thanks to uname
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Sterchele <[email protected]>
  • Loading branch information
Nicolas Sterchele authored and alexellis committed Oct 21, 2019
1 parent 3adb3b1 commit 7ab9871
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/export-sealed-secret-pubcert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@

if [ ! -f kubeseal ];
then
GOOS=$(go env GOOS)
GOARCH=$(go env GOARCH)
GOOS=$(echo $(uname -s) | tr '[:upper:]' '[:lower:]')
GOARCH=$(echo $(uname -m) | tr '[:upper:]' '[:lower:]')

if [ "$GOARCH" == "x86_64" ]; then
GOARCH="amd64"
fi

release=$(curl -sI https://github.com/bitnami-labs/sealed-secrets/releases/latest | grep Location | awk -F"/" '{ printf "%s", $NF }' | tr -d '\r')

Expand Down

0 comments on commit 7ab9871

Please sign in to comment.