This repository was archived by the owner on Jun 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +17
-16
lines changed
Expand file tree Collapse file tree 2 files changed +17
-16
lines changed Original file line number Diff line number Diff 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} "
1313tar -xzf " $release_file " -C " $ASDF_DOWNLOAD_PATH " --strip-components=1
14+ rm " $release_file "
Original file line number Diff line number Diff line change 33set -euo pipefail
44
55install_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
3333install_version " $ASDF_INSTALL_TYPE " " $ASDF_INSTALL_VERSION " " $ASDF_INSTALL_PATH "
You can’t perform that action at this time.
0 commit comments