@@ -53,16 +53,16 @@ checksum_url="https://github.com/wandera/helm-github/releases/download/v${versio
53
53
mkdir -p " bin"
54
54
mkdir -p " releases/v${version} "
55
55
binary_filename=" releases/v${version} .tar.gz"
56
- checksums_filename =" releases/v${version} _checksums .txt"
56
+ checksum_filename =" releases/v${version} _checksum .txt"
57
57
58
58
# Download binary and checksums files.
59
59
(
60
60
if command -v curl > /dev/null 2>&1 ; then
61
61
curl -sSL " ${binary_url} " -o " ${binary_filename} "
62
- curl -sSL " ${checksum_url} " -o " ${checksums_filename } "
62
+ curl -sSL " ${checksum_url} " -o " ${checksum_filename } "
63
63
elif command -v wget > /dev/null 2>&1 ; then
64
64
wget -q " ${binary_url} " -O " ${binary_filename} "
65
- wget -q " ${checksum_url} " -O " ${checksums_filename } "
65
+ wget -q " ${checksum_url} " -O " ${checksum_filename } "
66
66
else
67
67
echo " ERROR: no curl or wget found to download files." > /dev/stderr
68
68
fi
@@ -72,16 +72,16 @@ checksums_filename="releases/v${version}_checksums.txt"
72
72
(
73
73
if command -v sha256sum > /dev/null 2>&1 ; then
74
74
checksum=$( sha256sum " ${binary_filename} " | awk ' { print $1 }' )
75
- validate_checksum " ${checksum} " " ${checksums_filename } "
75
+ validate_checksum " ${checksum} " " ${checksum_filename } "
76
76
elif command -v openssl > /dev/null 2>&1 ; then
77
77
checksum=$( openssl dgst -sha256 " ${binary_filename} " | awk ' { print $2 }' )
78
- validate_checksum " ${checksum} " " ${checksums_filename } "
78
+ validate_checksum " ${checksum} " " ${checksum_filename } "
79
79
else
80
80
echo " WARNING: no tool found to verify checksum" > /dev/stderr
81
81
fi
82
82
)
83
83
84
84
# Unpack the binary.
85
85
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 "
87
87
exit 0
0 commit comments