diff --git a/tools/install/hcledit.sh b/tools/install/hcledit.sh index 7f9323d20..62a58a59a 100755 --- a/tools/install/hcledit.sh +++ b/tools/install/hcledit.sh @@ -8,10 +8,10 @@ readonly SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" # Unique part # -readonly GH_ORG="minamijoyo" -readonly GH_RELEASE_REGEX_LATEST="https://.+?_${TARGETOS}_${TARGETARCH}.tar.gz" -readonly GH_RELEASE_REGEX_SPECIFIC_VERSION="https://.+?${VERSION}_${TARGETOS}_${TARGETARCH}.tar.gz" -readonly DISTRIBUTED_AS="tar.gz" +GH_ORG="minamijoyo" +GH_RELEASE_REGEX_LATEST="https://.+?_${TARGETOS}_${TARGETARCH}.tar.gz" +GH_RELEASE_REGEX_SPECIFIC_VERSION="https://.+?${VERSION}_${TARGETOS}_${TARGETARCH}.tar.gz" +DISTRIBUTED_AS="tar.gz" common::install_from_gh_release "$GH_ORG" "$DISTRIBUTED_AS" \ "$GH_RELEASE_REGEX_LATEST" "$GH_RELEASE_REGEX_SPECIFIC_VERSION" diff --git a/tools/install/infracost.sh b/tools/install/infracost.sh index 53895a26c..33eab962c 100755 --- a/tools/install/infracost.sh +++ b/tools/install/infracost.sh @@ -7,11 +7,11 @@ readonly SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" # # Unique part # -readonly GH_ORG="infracost" -readonly GH_RELEASE_REGEX_LATEST="https://.+?-${TARGETOS}-${TARGETARCH}.tar.gz" -readonly GH_RELEASE_REGEX_SPECIFIC_VERSION="https://.+?v${VERSION}/${TOOL}-${TARGETOS}-${TARGETARCH}.tar.gz" -readonly DISTRIBUTED_AS="tar.gz" -readonly UNUSUAL_TOOL_NAME_IN_PKG="${TOOL}-${TARGETOS}-${TARGETARCH}" +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" +DISTRIBUTED_AS="tar.gz" +UNUSUAL_TOOL_NAME_IN_PKG="${TOOL}-${TARGETOS}-${TARGETARCH}" common::install_from_gh_release "$GH_ORG" "$DISTRIBUTED_AS" \ "$GH_RELEASE_REGEX_LATEST" "$GH_RELEASE_REGEX_SPECIFIC_VERSION" \ diff --git a/tools/install/terraform-docs.sh b/tools/install/terraform-docs.sh index 7bfa4cd35..a25a35573 100755 --- a/tools/install/terraform-docs.sh +++ b/tools/install/terraform-docs.sh @@ -7,10 +7,10 @@ readonly SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" # # Unique part # -readonly GH_ORG="terraform-docs" -readonly GH_RELEASE_REGEX_LATEST="https://.+?-${TARGETOS}-${TARGETARCH}.tar.gz" -readonly GH_RELEASE_REGEX_SPECIFIC_VERSION="https://.+?v${VERSION}-${TARGETOS}-${TARGETARCH}.tar.gz" -readonly DISTRIBUTED_AS="tar.gz" +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" +DISTRIBUTED_AS="tar.gz" common::install_from_gh_release "$GH_ORG" "$DISTRIBUTED_AS" \ "$GH_RELEASE_REGEX_LATEST" "$GH_RELEASE_REGEX_SPECIFIC_VERSION" diff --git a/tools/install/terragrunt.sh b/tools/install/terragrunt.sh index d246097fc..6b75f0e0c 100755 --- a/tools/install/terragrunt.sh +++ b/tools/install/terragrunt.sh @@ -7,10 +7,10 @@ readonly SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" # # Unique part # -readonly GH_ORG="gruntwork-io" -readonly GH_RELEASE_REGEX_LATEST="https://.+?/${TOOL}_${TARGETOS}_${TARGETARCH}" -readonly GH_RELEASE_REGEX_SPECIFIC_VERSION="https://.+?v${VERSION}/${TOOL}_${TARGETOS}_${TARGETARCH}" -readonly DISTRIBUTED_AS="binary" +GH_ORG="gruntwork-io" +GH_RELEASE_REGEX_LATEST="https://.+?/${TOOL}_${TARGETOS}_${TARGETARCH}" +GH_RELEASE_REGEX_SPECIFIC_VERSION="https://.+?v${VERSION}/${TOOL}_${TARGETOS}_${TARGETARCH}" +DISTRIBUTED_AS="binary" common::install_from_gh_release "$GH_ORG" "$DISTRIBUTED_AS" \ "$GH_RELEASE_REGEX_LATEST" "$GH_RELEASE_REGEX_SPECIFIC_VERSION" diff --git a/tools/install/terrascan.sh b/tools/install/terrascan.sh index 8c4ecdbf1..51dae0538 100755 --- a/tools/install/terrascan.sh +++ b/tools/install/terrascan.sh @@ -16,10 +16,10 @@ fi # Convert the first letter to Uppercase OS="${TARGETOS^}" -readonly GH_ORG="tenable" -readonly GH_RELEASE_REGEX_LATEST="https://.+?_${OS}_${ARCH}.tar.gz" -readonly GH_RELEASE_REGEX_SPECIFIC_VERSION="https://.+?${VERSION}_${OS}_${ARCH}.tar.gz" -readonly DISTRIBUTED_AS="tar.gz" +GH_ORG="tenable" +GH_RELEASE_REGEX_LATEST="https://.+?_${OS}_${ARCH}.tar.gz" +GH_RELEASE_REGEX_SPECIFIC_VERSION="https://.+?${VERSION}_${OS}_${ARCH}.tar.gz" +DISTRIBUTED_AS="tar.gz" common::install_from_gh_release "$GH_ORG" "$DISTRIBUTED_AS" \ "$GH_RELEASE_REGEX_LATEST" "$GH_RELEASE_REGEX_SPECIFIC_VERSION" diff --git a/tools/install/tflint.sh b/tools/install/tflint.sh index e3494a3d7..08ed28be8 100755 --- a/tools/install/tflint.sh +++ b/tools/install/tflint.sh @@ -8,10 +8,10 @@ readonly SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" # Unique part # -readonly GH_ORG="terraform-linters" -readonly GH_RELEASE_REGEX_LATEST="https://.+?_${TARGETOS}_${TARGETARCH}.zip" -readonly GH_RELEASE_REGEX_SPECIFIC_VERSION="https://.+?/v${VERSION}/${TOOL}_${TARGETOS}_${TARGETARCH}.zip" -readonly DISTRIBUTED_AS="zip" +GH_ORG="terraform-linters" +GH_RELEASE_REGEX_LATEST="https://.+?_${TARGETOS}_${TARGETARCH}.zip" +GH_RELEASE_REGEX_SPECIFIC_VERSION="https://.+?/v${VERSION}/${TOOL}_${TARGETOS}_${TARGETARCH}.zip" +DISTRIBUTED_AS="zip" common::install_from_gh_release "$GH_ORG" "$DISTRIBUTED_AS" \ "$GH_RELEASE_REGEX_LATEST" "$GH_RELEASE_REGEX_SPECIFIC_VERSION" diff --git a/tools/install/tfsec.sh b/tools/install/tfsec.sh index 184c361d7..3eacc0e7f 100755 --- a/tools/install/tfsec.sh +++ b/tools/install/tfsec.sh @@ -8,10 +8,10 @@ readonly SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" # Unique part # -readonly GH_ORG="aquasecurity" -readonly GH_RELEASE_REGEX_LATEST="https://.+?/${TOOL}-${TARGETOS}-${TARGETARCH}" -readonly GH_RELEASE_REGEX_SPECIFIC_VERSION="https://.+?v${VERSION}/${TOOL}-${TARGETOS}-${TARGETARCH}" -readonly DISTRIBUTED_AS="binary" +GH_ORG="aquasecurity" +GH_RELEASE_REGEX_LATEST="https://.+?/${TOOL}-${TARGETOS}-${TARGETARCH}" +GH_RELEASE_REGEX_SPECIFIC_VERSION="https://.+?v${VERSION}/${TOOL}-${TARGETOS}-${TARGETARCH}" +DISTRIBUTED_AS="binary" common::install_from_gh_release "$GH_ORG" "$DISTRIBUTED_AS" \ "$GH_RELEASE_REGEX_LATEST" "$GH_RELEASE_REGEX_SPECIFIC_VERSION" diff --git a/tools/install/tfupdate.sh b/tools/install/tfupdate.sh index 9b407bc19..512095803 100755 --- a/tools/install/tfupdate.sh +++ b/tools/install/tfupdate.sh @@ -7,10 +7,10 @@ readonly SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)" # # Unique part # -readonly GH_ORG="minamijoyo" -readonly GH_RELEASE_REGEX_LATEST="https://.+?_${TARGETOS}_${TARGETARCH}.tar.gz" -readonly GH_RELEASE_REGEX_SPECIFIC_VERSION="https://.+?${VERSION}_${TARGETOS}_${TARGETARCH}.tar.gz" -readonly DISTRIBUTED_AS="tar.gz" +GH_ORG="minamijoyo" +GH_RELEASE_REGEX_LATEST="https://.+?_${TARGETOS}_${TARGETARCH}.tar.gz" +GH_RELEASE_REGEX_SPECIFIC_VERSION="https://.+?${VERSION}_${TARGETOS}_${TARGETARCH}.tar.gz" +DISTRIBUTED_AS="tar.gz" common::install_from_gh_release "$GH_ORG" "$DISTRIBUTED_AS" \ "$GH_RELEASE_REGEX_LATEST" "$GH_RELEASE_REGEX_SPECIFIC_VERSION" diff --git a/tools/install/trivy.sh b/tools/install/trivy.sh index 9a422b77d..a562e7552 100755 --- a/tools/install/trivy.sh +++ b/tools/install/trivy.sh @@ -14,10 +14,10 @@ else readonly ARCH="64bit" fi -readonly GH_ORG="aquasecurity" -readonly GH_RELEASE_REGEX_LATEST="https://.+?/${TOOL}_.+?_${TARGETOS}-${ARCH}.tar.gz" -readonly GH_RELEASE_REGEX_SPECIFIC_VERSION="https://.+?/v${VERSION}/${TOOL}_.+?_${TARGETOS}-${ARCH}.tar.gz" -readonly DISTRIBUTED_AS="tar.gz" +GH_ORG="aquasecurity" +GH_RELEASE_REGEX_LATEST="https://.+?/${TOOL}_.+?_${TARGETOS}-${ARCH}.tar.gz" +GH_RELEASE_REGEX_SPECIFIC_VERSION="https://.+?/v${VERSION}/${TOOL}_.+?_${TARGETOS}-${ARCH}.tar.gz" +DISTRIBUTED_AS="tar.gz" common::install_from_gh_release "$GH_ORG" "$DISTRIBUTED_AS" \ "$GH_RELEASE_REGEX_LATEST" "$GH_RELEASE_REGEX_SPECIFIC_VERSION"