File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed 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.1 " ,
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
@@ -34,7 +29,7 @@ if [ -f "$source/alias.json" ]; then
34
29
zz_log i " Configuring aliases with {U $source /alias.json}..."
35
30
jq -r ' keys[]' $source /alias.json | dos2unix | while read key; do
36
31
value=$( jq -r " .$key " $source /alias.json)
37
- git config $GIT_CONFIG_SCOPE alias.$key " !sh -c ' $value ' -- \" \$ @\" " && zz_log - " Created alias {B $key } => {B $value }"
32
+ git config $GIT_CONFIG_SCOPE alias.$key " !sh -c \" $value \$ @\" " && zz_log - " Created alias {B $key } => {B $value }"
38
33
done
39
34
fi
40
35
You can’t perform that action at this time.
0 commit comments