Skip to content

Commit 7d790e1

Browse files
Maybe xz-tools might not be installed
1 parent d10303d commit 7d790e1

File tree

4 files changed

+44
-3
lines changed

4 files changed

+44
-3
lines changed

src/redis-cli/README.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# redis-cli
2+
3+
Install the [Redis command line utility](https://redis.io/docs/connect/cli/).
4+
5+
## Usage
6+
7+
```json
8+
"features": {
9+
"ghcr.io/CargoSense/devcontainer-features/redis-cli:1": {}
10+
}
11+
```
12+
13+
## Options
14+
15+
| Option ID | Description | Type | Default Value |
16+
|:----------|:----------------------------------|:-------|:--------------|
17+
| `version` | The redis-cli version to install. | string | `os-provided` |
18+
19+
## OS Support
20+
21+
This Feature should work on recent versions of Debian/Ubuntu and Linux distributions using the [apt](https://wiki.debian.org/AptCLI) management tool.
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"name": "Redis CLI",
3+
"id": "redis-cli",
4+
"version": "1.0.0",
5+
"description": "Install the Redis command line utility.",
6+
"options": {
7+
"version": {
8+
"type": "string",
9+
"proposals": [
10+
"os-provided"
11+
],
12+
"default": "os-provided",
13+
"description": "Select or enter a Redis CLI version."
14+
}
15+
},
16+
"installsAfter": [
17+
"ghcr.io/devcontainers/features/common-utils"
18+
]
19+
}

src/redis-cli/install.sh

Whitespace-only changes.

src/shellcheck/install.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ curl_installed=""
2222

2323
if ! 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"
2828
fi
@@ -43,10 +43,11 @@ case "${machine}" in
4343
esac
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

4849
curl -sSL "${url}" | tar --strip-components=1 -Jxvf - -C "${INSTALL_PATH}" "shellcheck-v${SHELLCHECK_VERSION}/shellcheck"
4950

5051
if [ -n "${curl_installed}" ]; then
51-
apt purge curl --autoremove --yes
52+
apt purge curl xz-utils --autoremove --yes
5253
fi

0 commit comments

Comments
 (0)