File tree 2 files changed +2
-11
lines changed
2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " Add commands to work with repos" ,
3
3
"id" : " repos" ,
4
- "version" : " 1.5.3 " ,
4
+ "version" : " 1.5.4 " ,
5
5
"description" : " Add commands to work with multiple repos" ,
6
- "updateContentCommand" : " /usr/local/bin/repos-update-content" ,
7
6
"postCreateCommand" : " /usr/local/bin/repos-post-create" ,
8
7
"postStartCommand" : " /usr/local/bin/repos-post-start" ,
9
8
"options" : {
Original file line number Diff line number Diff line change @@ -44,26 +44,18 @@ source scripts/shellrc-config.sh
44
44
# ---------------------
45
45
46
46
# Paths to the command files
47
- PATH_UPDATE_CONTENT_COMMAND=/usr/local/bin/repos-update-content
48
47
PATH_POST_CREATE_COMMAND=/usr/local/bin/repos-post-create
49
48
PATH_START_CREATE_COMMAND=/usr/local/bin/repos-post-start
50
49
51
50
# Initialize the command files
52
- initialize_command_file " $PATH_UPDATE_CONTENT_COMMAND "
53
51
initialize_command_file " $PATH_POST_CREATE_COMMAND "
54
52
initialize_command_file " $PATH_START_CREATE_COMMAND "
55
53
56
54
# Add commands
57
55
58
- # update-content
59
- append_command_with_error_handling \
60
- " /usr/local/bin/repos-git-auth --scope system" " $PATH_UPDATE_CONTENT_COMMAND "
61
-
62
56
# post-create
63
57
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 "
67
59
68
60
# post-start
69
61
append_command_with_error_handling \
You can’t perform that action at this time.
0 commit comments