Skip to content

Commit 2fbefb6

Browse files
authored
Revert to postCreateCommand as updateContentCommand offered nothing
It still ran as the remoteUser (devcontainers/spec#60 (comment))
1 parent 1195eb2 commit 2fbefb6

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

src/repos/devcontainer-feature.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
{
22
"name": "Add commands to work with repos",
33
"id": "repos",
4-
"version": "1.5.3",
4+
"version": "1.5.4",
55
"description": "Add commands to work with multiple repos",
6-
"updateContentCommand": "/usr/local/bin/repos-update-content",
76
"postCreateCommand": "/usr/local/bin/repos-post-create",
87
"postStartCommand": "/usr/local/bin/repos-post-start",
98
"options": {

src/repos/install.sh

+1-9
Original file line numberDiff line numberDiff line change
@@ -44,26 +44,18 @@ source scripts/shellrc-config.sh
4444
# ---------------------
4545

4646
# Paths to the command files
47-
PATH_UPDATE_CONTENT_COMMAND=/usr/local/bin/repos-update-content
4847
PATH_POST_CREATE_COMMAND=/usr/local/bin/repos-post-create
4948
PATH_START_CREATE_COMMAND=/usr/local/bin/repos-post-start
5049

5150
# Initialize the command files
52-
initialize_command_file "$PATH_UPDATE_CONTENT_COMMAND"
5351
initialize_command_file "$PATH_POST_CREATE_COMMAND"
5452
initialize_command_file "$PATH_START_CREATE_COMMAND"
5553

5654
# Add commands
5755

58-
# update-content
59-
append_command_with_error_handling \
60-
"/usr/local/bin/repos-git-auth --scope system" "$PATH_UPDATE_CONTENT_COMMAND"
61-
6256
# post-create
6357
append_command_with_error_handling \
64-
"/usr/local/bin/repos-workspace-add" "$PATH_POST_CREATE_COMMAND"
65-
append_command_with_error_handling \
66-
"/usr/local/bin/repos-git-clone" "$PATH_POST_CREATE_COMMAND"
58+
'if [ "$(id -u)" -eq 0 ]; then /usr/local/bin/repos-git-auth --scope system; fi' "$PATH_POST_CREATE_COMMAND"
6759

6860
# post-start
6961
append_command_with_error_handling \

0 commit comments

Comments
 (0)