We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b20ee2d commit 2b06a7fCopy full SHA for 2b06a7f
src/apt-packages/devcontainer-feature.json
@@ -1,7 +1,7 @@
1
{
2
"name": "APT Packages",
3
"id": "apt-packages",
4
- "version": "1.0.1",
+ "version": "1.0.2",
5
"description": "Install programs using the APT package manager.",
6
"options": {
7
"packages": {
src/apt-packages/install.sh
@@ -1,10 +1,10 @@
-#!/usr/bin/env sh
+#!/usr/bin/env bash
set -e
-apt update
+read -ar packages <<< "${PACKAGES:-""}"
-# shellcheck disable=SC2154
8
-apt install --no-install-recommends --yes "${PACKAGES}"
+apt update
+apt install --no-install-recommends --yes "${packages[@]}"
9
10
rm -rf /var/lib/apt/lists /var/cache/apt/archives
0 commit comments