Skip to content

Commit 108832d

Browse files
fix: add missing flag name in cut
Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com>
1 parent bfc1b20 commit 108832d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/vscode-cache-extensions/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ref: https://github.com/devcontainers/spec/blob/main/schemas/devContainerFeature.schema.json
22
{
33
"id": "vscode-cache-extensions",
4-
"version": "0.2.0",
4+
"version": "0.2.1",
55
"name": "VS Code | Cache Extensions",
66
"documentationURL": "https://github.com/georglauterbach/dev-container-features/tree/main/src/vscode-cache-extensions",
77
"description": "Prevent superfluous (re-)installations of VS Code extensions upon container restarts",

src/vscode-cache-extensions/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fi
2121
# `updateRemoteUserUID: true` in some cases, which would result in
2222
# a UID mismatch; hence, we need `777` as the permissions.
2323
for LOOP_VAR in "stable," "insiders,-insiders"; do
24-
PERSISTENCE_DIR="${CACHE_MOUNT_POINT}/$(printf '%s' "${LOOP_VAR}" | cut -d , - 1)"
24+
PERSISTENCE_DIR="${CACHE_MOUNT_POINT}/$(printf '%s' "${LOOP_VAR}" | cut -d , -f 1)"
2525
TMP_STORAGE_DIR="${_REMOTE_USER_HOME}/.vscode-server$(printf '%s' "${LOOP_VAR}" | cut --delimiter=, --fields=2)"
2626

2727
# shellcheck disable=SC2174

0 commit comments

Comments
 (0)