From ada581047c0257c048ab902bc37c87a44668665a Mon Sep 17 00:00:00 2001 From: Alexander Sharov Date: Wed, 1 May 2024 01:44:59 +0300 Subject: [PATCH] fix: small fixes --- .github/workflows/lint.yml | 2 +- bin/download | 4 +-- bin/help.links | 4 +-- bin/help.overview | 4 +-- bin/install | 4 +-- bin/latest-stable | 4 +-- bin/list-all | 4 +-- lib/{utils.bash => utils.sh} | 43 +++++++++--------------------- scripts/{format.bash => format.sh} | 0 scripts/{lint.bash => lint.sh} | 0 10 files changed, 25 insertions(+), 44 deletions(-) rename lib/{utils.bash => utils.sh} (65%) rename scripts/{format.bash => format.sh} (100%) rename scripts/{lint.bash => lint.sh} (100%) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 434b5f0..9e26d93 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,7 +14,7 @@ jobs: - uses: asdf-vm/actions/install@v3 - - run: scripts/lint.bash + - run: scripts/lint.sh actionlint: runs-on: ubuntu-latest diff --git a/bin/download b/bin/download index 7e13904..d707bb6 100755 --- a/bin/download +++ b/bin/download @@ -5,8 +5,8 @@ set -euo pipefail current_script_path=${BASH_SOURCE[0]} plugin_dir=$(dirname "$(dirname "${current_script_path}")") -# shellcheck source=./lib/utils.bash -source "${plugin_dir}/lib/utils.bash" +# shellcheck source=./lib/utils.sh +source "${plugin_dir}/lib/utils.sh" mkdir -p "${ASDF_DOWNLOAD_PATH}" diff --git a/bin/help.links b/bin/help.links index d03766f..aafa0df 100755 --- a/bin/help.links +++ b/bin/help.links @@ -5,8 +5,8 @@ set -euo pipefail current_script_path=${BASH_SOURCE[0]} plugin_dir=$(dirname "$(dirname "${current_script_path}")") -# shellcheck source=./lib/utils.bash -source "${plugin_dir}/lib/utils.bash" +# shellcheck source=./lib/utils.sh +source "${plugin_dir}/lib/utils.sh" cat <&2 - return 1 - fi + local -r version="${1}" + local -r download_path="${2}" + local -r checksum_file="${TOOL_BIN_NAME}_${version}_checksums.txt" + + baseURL="${GH_REPO}/releases/download/v${version}" + local files=("$checksum_file") } diff --git a/scripts/format.bash b/scripts/format.sh similarity index 100% rename from scripts/format.bash rename to scripts/format.sh diff --git a/scripts/lint.bash b/scripts/lint.sh similarity index 100% rename from scripts/lint.bash rename to scripts/lint.sh