Skip to content

Commit

Permalink
fix: some variables
Browse files Browse the repository at this point in the history
  • Loading branch information
swbsf committed Oct 24, 2023
1 parent ba390b3 commit f36ecb8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ before:
builds:
- goos:
- linux
- darwin
goarch:
- amd64
- arm64
26 changes: 13 additions & 13 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ set -e
usage() {
this=$1
cat <<EOF
$this: download go binaries for KnechtionsCoding/helm-schema-gen
$this: download go binaries for swbsf/helm-schema-gen
Usage: $this [-b] bindir [-d] [tag]
-b sets bindir or installation directory, Defaults to ./bin
-d turns on debug logging
[tag] is a tag from
https://github.com/KnechtionsCoding/helm-schema-gen/releases
https://github.com/swbsf/helm-schema-gen/releases
If tag is missing, then the latest will be used.
Generated by godownloader
Expand Down Expand Up @@ -102,24 +102,24 @@ adjust_format() {
adjust_os() {
# adjust archive name based on OS
case ${OS} in
386) OS=i386 ;;
amd64) OS=x86_64 ;;
arm64) OS=arm ;;
darwin) OS=Darwin ;;
linux) OS=Linux ;;
windows) OS=Windows ;;
386) OS=386 ;;
amd64) OS=amd64 ;;
arm64) OS=arm64 ;;
darwin) OS=darwin ;;
linux) OS=linux ;;
windows) OS=windows ;;
esac
true
}
adjust_arch() {
# adjust archive name based on ARCH
case ${ARCH} in
386) ARCH=i386 ;;
amd64) ARCH=x86_64 ;;
386) ARCH=386 ;;
amd64) ARCH=amd64 ;;
arm64) ARCH=arm64 ;;
darwin) ARCH=Darwin ;;
linux) ARCH=Linux ;;
windows) ARCH=Windows ;;
darwin) ARCH=darwin ;;
linux) ARCH=linux ;;
windows) ARCH=windows ;;
esac
true
}
Expand Down

0 comments on commit f36ecb8

Please sign in to comment.