Skip to content

Commit 477d7a5

Browse files
committed
cleanups
1 parent 99a80e7 commit 477d7a5

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/utils.bash

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@ set -euo pipefail
55
# TODO: Ensure this is the correct GitHub homepage where releases can be downloaded for clang-tools-static.
66
GH_REPO="muttleyxd/clang-tools-static-binaries"
77
GH_REPO_URL="https://github.com/${GH_REPO}"
8-
TOOL_NAME="clang-tools-static"
9-
TOOL_TEST="clang-format"
8+
PLUGIN_NAME="clang-tools-static"
109
USE_KERNEL=
1110
USE_ARCH=
1211
USE_PLATFORM=
1312
YES_REGEX='^[Yy](E|e)?(S|s)?$'
1413

1514
fail() {
16-
echo -e "asdf-$TOOL_NAME: $*"
15+
echo -e "asdf-$PLUGIN_NAME: $*"
1716
exit 1
1817
}
1918

@@ -29,7 +28,7 @@ validate_deps() {
2928
}
3029

3130
log() {
32-
echo -e "asdf-$TOOL_NAME: $*"
31+
echo -e "asdf-$PLUGIN_NAME: $*"
3332
}
3433

3534
curl_opts=(-fsSL)
@@ -138,7 +137,7 @@ install_version() {
138137
validate_platform
139138

140139
if [ "$install_type" != "version" ]; then
141-
fail "asdf-$TOOL_NAME supports release installs only"
140+
fail "asdf-$PLUGIN_NAME supports release installs only"
142141
fi
143142

144143
if command -v sha512sum >/dev/null; then

0 commit comments

Comments
 (0)