File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ curl_installed=""
2222
2323if ! type curl > /dev/null 2>&1 ; then
2424 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
2626
2727 curl_installed=" true"
2828fi
@@ -43,10 +43,11 @@ case "${machine}" in
4343esac
4444
4545# 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} "
4748
4849curl -sSL " ${url} " | tar --strip-components=1 -Jxvf - -C " ${INSTALL_PATH} " " shellcheck-v${SHELLCHECK_VERSION} /shellcheck"
4950
5051if [ -n " ${curl_installed} " ]; then
51- apt purge curl --autoremove --yes
52+ apt purge curl xz-utils --autoremove --yes
5253fi
You can’t perform that action at this time.
0 commit comments