File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -13,4 +13,7 @@ for f in known_hosts id_rsa; do
13
13
fi
14
14
done
15
15
16
+ # ## Add ssh-keyscan to known_hosts
17
+ sudo mkdir -p /home/vscode/.ssh
18
+ sudo chmod 700 /home/vscode/.ssh
16
19
ssh-keyscan github.com >> /home/vscode/.ssh/known_hosts
Original file line number Diff line number Diff line change 2
2
"id" : " gitutils" ,
3
3
"name" : " Git Aliases" ,
4
4
"description" : " A feature to add useful Git aliases to your shell." ,
5
- "version" : " 5.4.0 " ,
5
+ "version" : " 5.4.3 " ,
6
6
"dependsOn" : {
7
7
"ghcr.io/devcontainers/features/node:1" : " lts" ,
8
8
"ghcr.io/tomgrv/devcontainer-features/common-utils:3" : {
Original file line number Diff line number Diff line change 4
4
zz_context " $@ "
5
5
)
6
6
7
- # Detect if --system flag can be used for writing
8
- if git config --system test.key test.value > /dev/null 2>&1 ; then
9
- GIT_CONFIG_SCOPE=" --system"
10
- git config --system --unset test.key
11
- else
12
- GIT_CONFIG_SCOPE=" --global"
13
- fi
7
+ # Set Context
8
+ GIT_CONFIG_SCOPE=" --system"
14
9
15
10
# Check if jq is installed
16
11
if ! command -v jq > /dev/null 2>&1 ; then
42
37
zz_log i " Configuring scripts with {U $feature /_xx.sh}..."
43
38
for script in $target /_* .sh; do
44
39
alias=$( basename $script | sed -e ' s/^_//g' -e ' s/.sh$//g' )
45
- git config $GIT_CONFIG_SCOPE alias.$alias " !sh -c '$( readlink -f $script ) ' -- \"\$ @\" " && zz_log - " Created alias {B $alias } => {B $( readlink -f $script ) }"
40
+ git config $GIT_CONFIG_SCOPE alias.$alias " !sh -c '$( readlink -f $script ) \"\$ @ \" ' -- \"\$ @\" " && zz_log - " Created alias {B $alias } => {B $( readlink -f $script ) }"
46
41
done
You can’t perform that action at this time.
0 commit comments