File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ curl_installed=""
22
22
23
23
if ! type curl > /dev/null 2>&1 ; then
24
24
apt update --yes
25
- apt install --no-install-recommends --yes curl ca-certificates
25
+ apt install --no-install-recommends --yes curl ca-certificates xz-utils
26
26
27
27
curl_installed=" true"
28
28
fi
@@ -43,10 +43,11 @@ case "${machine}" in
43
43
esac
44
44
45
45
# https://github.com/koalaman/shellcheck/releases/download/v0.9.0/shellcheck-v0.9.0.linux.aarch64.tar.xz
46
- url=" https://github.com/koalaman/shellcheck/releases/download/v${SHELLCHECK_VERSION} /shellcheck-v${SHELLCHECK_VERSION} .linux.${arch} .tar.xz"
46
+ file=" shellcheck-v${SHELLCHECK_VERSION} .linux.${arch} .tar.xz"
47
+ url=" https://github.com/koalaman/shellcheck/releases/download/v${SHELLCHECK_VERSION} /${file} "
47
48
48
49
curl -sSL " ${url} " | tar --strip-components=1 -Jxvf - -C " ${INSTALL_PATH} " " shellcheck-v${SHELLCHECK_VERSION} /shellcheck"
49
50
50
51
if [ -n " ${curl_installed} " ]; then
51
- apt purge curl --autoremove --yes
52
+ apt purge curl xz-utils --autoremove --yes
52
53
fi
You can’t perform that action at this time.
0 commit comments