Skip to content

Commit 1af6d8e

Browse files
committed
Update features from sources
1 parent fb3f596 commit 1af6d8e

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Contributions, issues and such are welcomed **in their own open source projects*
3030
| [Restore terminals](./src/restore-terminals/README.md) | [v0.0.1](https://gitlab.com/geekstuff.dev/devcontainers/features/restore-terminals/-/tree/v0.0.1) | [ghcr.io/geekstuff-dev/devcontainers-features/restore-terminals](https://github.com/users/geekstuff-dev/packages/container/package/devcontainers-features%2Frestore-terminals) |
3131
| [Rust](./src/rust/README.md) | [v0.0.4](https://gitlab.com/geekstuff.dev/devcontainers/features/rust/-/tree/v0.0.4) | [ghcr.io/geekstuff-dev/devcontainers-features/rust](https://github.com/users/geekstuff-dev/packages/container/package/devcontainers-features%2Frust) |
3232
| [Shared cache](./src/shared-cache/README.md) | [v0.0.1](https://gitlab.com/geekstuff.dev/devcontainers/features/shared-cache/-/tree/v0.0.1) | [ghcr.io/geekstuff-dev/devcontainers-features/shared-cache](https://github.com/users/geekstuff-dev/packages/container/package/devcontainers-features%2Fshared-cache) |
33-
| [Shellcheck](./src/shellcheck/README.md) | [v0.0.2](https://gitlab.com/geekstuff.dev/devcontainers/features/shellcheck/-/tree/v0.0.2) | [ghcr.io/geekstuff-dev/devcontainers-features/shellcheck](https://github.com/users/geekstuff-dev/packages/container/package/devcontainers-features%2Fshellcheck) |
33+
| [Shellcheck](./src/shellcheck/README.md) | [v0.0.3](https://gitlab.com/geekstuff.dev/devcontainers/features/shellcheck/-/tree/v0.0.3) | [ghcr.io/geekstuff-dev/devcontainers-features/shellcheck](https://github.com/users/geekstuff-dev/packages/container/package/devcontainers-features%2Fshellcheck) |
3434
| [Starship](./src/starship/README.md) | [v0.1.0](https://gitlab.com/geekstuff.dev/devcontainers/features/starship/-/tree/v0.1.0) | [ghcr.io/geekstuff-dev/devcontainers-features/starship](https://github.com/users/geekstuff-dev/packages/container/package/devcontainers-features%2Fstarship) |
3535
| [TF Backend Gitlab](./src/tf-backend-gitlab/README.md) | [v0.1.0](https://gitlab.com/geekstuff.dev/devcontainers/features/tf-backend-gitlab/-/tree/v0.1.0) | [ghcr.io/geekstuff-dev/devcontainers-features/tf-backend-gitlab](https://github.com/users/geekstuff-dev/packages/container/package/devcontainers-features%2Ftf-backend-gitlab) |
3636
| [Terraform](./src/terraform/README.md) | [v0.2.2](https://gitlab.com/geekstuff.dev/devcontainers/features/terraform/-/tree/v0.2.2) | [ghcr.io/geekstuff-dev/devcontainers-features/terraform](https://github.com/users/geekstuff-dev/packages/container/package/devcontainers-features%2Fterraform) |

src/shellcheck/devcontainer-feature.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "Shellcheck",
33
"id": "shellcheck",
4-
"version": "0.0.2",
4+
"version": "0.0.3",
55
"description": "Installs Shell check",
6-
"documentationURL": "https://gitlab.com/geekstuff.dev/devcontainers/features/shellcheck/-/blob/v0.0.2/README.md",
7-
"licenseURL": "https://gitlab.com/geekstuff.dev/devcontainers/features/shellcheck/-/blob/v0.0.2/LICENSE",
6+
"documentationURL": "https://gitlab.com/geekstuff.dev/devcontainers/features/shellcheck/-/blob/v0.0.3/README.md",
7+
"licenseURL": "https://gitlab.com/geekstuff.dev/devcontainers/features/shellcheck/-/blob/v0.0.3/LICENSE",
88
"options": {
99
"version": {
1010
"type": "string",

src/shellcheck/install.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,20 @@ TMP_DIR=$(mktemp -d)
1515
TARGET="$TMP_DIR/shellcheck.tar.xz"
1616
BIN="$TMP_DIR/shellcheck-${VERSION}/shellcheck"
1717

18+
# xz package necessary
19+
if ! command -v xz >/dev/null 2>&1; then
20+
if command -v apt >/dev/null 2>&1; then
21+
apt-get update
22+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends xz-utils
23+
rm -rf /var/lib/apt/lists/*
24+
elif command -v apk >/dev/null 2>&1; then
25+
apk add --no-cache xz
26+
else
27+
echo "error: unable to install xz in this OS distro"
28+
exit 1
29+
fi
30+
fi
31+
1832
# install if not present
1933
if ! command -v shellcheck &>/dev/null; then
2034
curl -fsSL -o $TARGET https://github.com/koalaman/shellcheck/releases/download/v0.10.0/shellcheck-${VERSION}.linux.x86_64.tar.xz

0 commit comments

Comments
 (0)