diff --git a/tools/install/infracost.sh b/tools/install/infracost.sh index df43318b2..6f3ffc330 100755 --- a/tools/install/infracost.sh +++ b/tools/install/infracost.sh @@ -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" diff --git a/tools/install/terraform-docs.sh b/tools/install/terraform-docs.sh index 8aaa712b5..079a01bae 100755 --- a/tools/install/terraform-docs.sh +++ b/tools/install/terraform-docs.sh @@ -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" diff --git a/tools/install/terragrunt.sh b/tools/install/terragrunt.sh index e47baf1ab..41df2510a 100755 --- a/tools/install/terragrunt.sh +++ b/tools/install/terragrunt.sh @@ -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}" diff --git a/tools/install/terrascan.sh b/tools/install/terrascan.sh index 7e7a924b4..bce43ef21 100755 --- a/tools/install/terrascan.sh +++ b/tools/install/terrascan.sh @@ -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^}" diff --git a/tools/install/tfupdate.sh b/tools/install/tfupdate.sh index 780429bf9..278c17281 100755 --- a/tools/install/tfupdate.sh +++ b/tools/install/tfupdate.sh @@ -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" diff --git a/tools/install/trivy.sh b/tools/install/trivy.sh index db82fa9cf..0c01f8c00 100755 --- a/tools/install/trivy.sh +++ b/tools/install/trivy.sh @@ -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"