Skip to content

Commit 6666ec0

Browse files
committedAug 10, 2022
Fix install script
1 parent 9d7af13 commit 6666ec0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎hack/install.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,16 @@ checksum_url="https://github.com/wandera/helm-github/releases/download/v${versio
5353
mkdir -p "bin"
5454
mkdir -p "releases/v${version}"
5555
binary_filename="releases/v${version}.tar.gz"
56-
checksums_filename="releases/v${version}_checksums.txt"
56+
checksum_filename="releases/v${version}_checksum.txt"
5757

5858
# Download binary and checksums files.
5959
(
6060
if command -v curl >/dev/null 2>&1; then
6161
curl -sSL "${binary_url}" -o "${binary_filename}"
62-
curl -sSL "${checksum_url}" -o "${checksums_filename}"
62+
curl -sSL "${checksum_url}" -o "${checksum_filename}"
6363
elif command -v wget >/dev/null 2>&1; then
6464
wget -q "${binary_url}" -O "${binary_filename}"
65-
wget -q "${checksum_url}" -O "${checksums_filename}"
65+
wget -q "${checksum_url}" -O "${checksum_filename}"
6666
else
6767
echo "ERROR: no curl or wget found to download files." >/dev/stderr
6868
fi
@@ -72,16 +72,16 @@ checksums_filename="releases/v${version}_checksums.txt"
7272
(
7373
if command -v sha256sum >/dev/null 2>&1; then
7474
checksum=$(sha256sum "${binary_filename}" | awk '{ print $1 }')
75-
validate_checksum "${checksum}" "${checksums_filename}"
75+
validate_checksum "${checksum}" "${checksum_filename}"
7676
elif command -v openssl >/dev/null 2>&1; then
7777
checksum=$(openssl dgst -sha256 "${binary_filename}" | awk '{ print $2 }')
78-
validate_checksum "${checksum}" "${checksums_filename}"
78+
validate_checksum "${checksum}" "${checksum_filename}"
7979
else
8080
echo "WARNING: no tool found to verify checksum" >/dev/stderr
8181
fi
8282
)
8383

8484
# Unpack the binary.
8585
tar xzf "${binary_filename}" -C "releases/v${version}"
86-
mv "releases/v${version}/bin/helms3" "bin/helms3"
86+
mv "releases/v${version}/bin/helmgithub" "bin/helmgithub"
8787
exit 0

0 commit comments

Comments
 (0)
Please sign in to comment.