Skip to content

Commit d7a21c9

Browse files
committed
Install curl before using it.
1 parent 6dedfb1 commit d7a21c9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/circleci-cli/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ check_packages() {
2727
}
2828

2929
export DEBIAN_FRONTEND=noninteractive
30-
check_packages coreutils curl tar
30+
check_packages curl
3131

3232
curl -fLSs https://raw.githubusercontent.com/CircleCI-Public/circleci-cli/master/install.sh | bash

src/exercism-cli/install.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ DESTDIR="${DESTDIR:-/usr/local/bin}"
1919
OS="${OS:-linux}"
2020
ARCH="${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-
2622
apt_get_update()
2723
{
2824
if [ "$(find /var/lib/apt/lists/* | wc -l)" = "0" ]; then
@@ -40,7 +36,11 @@ check_packages() {
4036
}
4137

4238
export 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

4545
echo "Installing exercism-cli: v${VERSION}"
4646

0 commit comments

Comments
 (0)