Skip to content

Commit

Permalink
Minor style improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxymVlasov committed Mar 18, 2024
1 parent 0fbbb5b commit 51cfcd9
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions tools/install/infracost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ readonly SCRIPT_DIR
#
# Unique part
#

GH_ORG="infracost"
GH_RELEASE_REGEX_LATEST="https://.+?-${TARGETOS}-${TARGETARCH}.tar.gz"
GH_RELEASE_REGEX_SPECIFIC_VERSION="https://.+?v${VERSION}/${TOOL}-${TARGETOS}-${TARGETARCH}.tar.gz"
Expand Down
1 change: 1 addition & 0 deletions tools/install/terraform-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ readonly SCRIPT_DIR
#
# Unique part
#

GH_ORG="terraform-docs"
GH_RELEASE_REGEX_LATEST="https://.+?-${TARGETOS}-${TARGETARCH}.tar.gz"
GH_RELEASE_REGEX_SPECIFIC_VERSION="https://.+?v${VERSION}-${TARGETOS}-${TARGETARCH}.tar.gz"
Expand Down
1 change: 1 addition & 0 deletions tools/install/terragrunt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ readonly SCRIPT_DIR
#
# Unique part
#

GH_ORG="gruntwork-io"
GH_RELEASE_REGEX_LATEST="https://.+?/${TOOL}_${TARGETOS}_${TARGETARCH}"
GH_RELEASE_REGEX_SPECIFIC_VERSION="https://.+?v${VERSION}/${TOOL}_${TARGETOS}_${TARGETARCH}"
Expand Down
2 changes: 1 addition & 1 deletion tools/install/terrascan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ readonly SCRIPT_DIR
# Unique part
#

[[ $TARGETARCH != amd64 ]] && ARCH="$TARGETARCH" || ARCH="x86_64"
[[ $TARGETARCH != amd64 ]] && ARCH="x86_64" || ARCH="$TARGETARCH"
readonly ARCH
# Convert the first letter to Uppercase
OS="${TARGETOS^}"
Expand Down
1 change: 1 addition & 0 deletions tools/install/tfupdate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ readonly SCRIPT_DIR
#
# Unique part
#

GH_ORG="minamijoyo"
GH_RELEASE_REGEX_LATEST="https://.+?_${TARGETOS}_${TARGETARCH}.tar.gz"
GH_RELEASE_REGEX_SPECIFIC_VERSION="https://.+?${VERSION}_${TARGETOS}_${TARGETARCH}.tar.gz"
Expand Down
7 changes: 2 additions & 5 deletions tools/install/trivy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@ readonly SCRIPT_DIR
# Unique part
#

if [[ $TARGETARCH != amd64 ]]; then
readonly ARCH="$TARGETARCH"
else
readonly ARCH="64bit"
fi
[[ $TARGETARCH == amd64 ]] && ARCH="64bit" || ARCH="$TARGETARCH"
readonly ARCH

GH_ORG="aquasecurity"
GH_RELEASE_REGEX_LATEST="https://.+?/${TOOL}_.+?_${TARGETOS}-${ARCH}.tar.gz"
Expand Down

0 comments on commit 51cfcd9

Please sign in to comment.