Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Commit 3bc85b1

Browse files
committed
ci: fix lint
1 parent 9f3ba5b commit 3bc85b1

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

bin/download

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ release_file="${ASDF_DOWNLOAD_PATH}/zig-${ASDF_INSTALL_VERSION}.tar.xz"
1111

1212
"${plugin_dir}/lib/utils.py" download "${ASDF_INSTALL_VERSION}" "${release_file}"
1313
tar -xzf "$release_file" -C "$ASDF_DOWNLOAD_PATH" --strip-components=1
14+
rm "$release_file"

bin/install

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,31 @@
33
set -euo pipefail
44

55
install_version() {
6-
local install_type="$1"
7-
local version="$2"
8-
local install_path="$3"
6+
local install_type="$1"
7+
local version="$2"
8+
local install_path="$3"
99

10-
if [ "$install_type" != "version" ]; then
11-
fail "asdf-zig supports release installs only"
12-
fi
10+
if [ "$install_type" != "version" ]; then
11+
fail "asdf-zig supports release installs only"
12+
fi
1313

14-
(
15-
mkdir -p "$install_path"
16-
cp -r "$ASDF_DOWNLOAD_PATH"/* "$install_path"
14+
(
15+
mkdir -p "$install_path"
16+
cp -r "$ASDF_DOWNLOAD_PATH"/* "$install_path"
1717
mkdir -p "$install_path/bin"
1818
mv "$install_path/zig" "$install_path/bin/zig"
1919

20-
local tool_cmd="zig"
21-
if ! test -x "$install_path/bin/$tool_cmd"; then
20+
local tool_cmd="zig"
21+
if ! test -x "$install_path/bin/$tool_cmd"; then
2222
echo "Expected $install_path/bin/zig to be executable."
2323
exit 1
2424
fi
2525

26-
echo "zig $version installation was successful!"
27-
) || (
28-
rm -rf "$install_path"
29-
fail "An error occurred while installing $TOOL_NAME $version."
30-
)
26+
echo "zig $version installation was successful!"
27+
) || (
28+
rm -rf "$install_path"
29+
fail "An error occurred while installing $TOOL_NAME $version."
30+
)
3131
}
3232

3333
install_version "$ASDF_INSTALL_TYPE" "$ASDF_INSTALL_VERSION" "$ASDF_INSTALL_PATH"

0 commit comments

Comments
 (0)