File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,6 @@ check_packages() {
2727}
2828
2929export DEBIAN_FRONTEND=noninteractive
30- check_packages coreutils curl tar
30+ check_packages curl
3131
3232curl -fLSs https://raw.githubusercontent.com/CircleCI-Public/circleci-cli/master/install.sh | bash
Original file line number Diff line number Diff line change @@ -19,10 +19,6 @@ DESTDIR="${DESTDIR:-/usr/local/bin}"
1919OS=" ${OS:- linux} "
2020ARCH=" ${ARCH:- x86_64} "
2121
22- if [[ -z " $VERSION " ]] || [[ " $VERSION " = " latest" ]]; then {
23- VERSION=$( curl -sLI -o /dev/null -w ' %{url_effective}' " $LATEST_URL " | cut -d " v" -f 2)
24- } fi
25-
2622apt_get_update ()
2723{
2824 if [ " $( find /var/lib/apt/lists/* | wc -l) " = " 0" ]; then
@@ -40,7 +36,11 @@ check_packages() {
4036}
4137
4238export DEBIAN_FRONTEND=noninteractive
43- check_packages coreutils curl tar
39+ check_packages curl
40+
41+ if [[ -z " $VERSION " ]] || [[ " $VERSION " = " latest" ]]; then {
42+ VERSION=$( curl -sLI -o /dev/null -w ' %{url_effective}' " $LATEST_URL " | cut -d " v" -f 2)
43+ } fi
4444
4545echo " Installing exercism-cli: v${VERSION} "
4646
You can’t perform that action at this time.
0 commit comments