File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ docker run quay.io/sers.dev/gitfile:latest
56
56
57
57
or alternatively:
58
58
``` shell script
59
- curl -L https://raw.githubusercontent.com/sers-dev/gitfile/master /gitfile.sh > /usr/local/bin/gitfile
59
+ curl -L https://raw.githubusercontent.com/sers-dev/gitfile/main /gitfile.sh > /usr/local/bin/gitfile
60
60
```
61
61
62
62
#### dependencies:
@@ -97,11 +97,11 @@ gitfile:
97
97
# optional: path to clone the repository into (default taken from gitfile command)
98
98
# relative path values are always relative to the path of the .gitfile
99
99
path : ~/workspace/github/sers-dev/
100
- # optional: version to checkout (defaults to master )
100
+ # optional: version to checkout (defaults to main )
101
101
# tags, branch names and commit hashes are all valid values
102
102
# if you can run `git checkout $VERSION` it's valid
103
- version : master
103
+ version : main
104
104
` ` `
105
105
106
106
#### Release Cycle:
107
- ` gitfile.sh` content changes on master will always trigger a new release; if it's good enough to be merged, it's good enough to be released.
107
+ ` gitfile.sh` content changes on main will always trigger a new release; if it's good enough to be merged, it's good enough to be released.
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ function parseYaml
54
54
TO=$( expr ${LINE_NUMBERS[$i + 1]} - 1)
55
55
fi
56
56
SOURCE=$( echo " ${YAML_FILE_CONTENT} " | sed -n " ${FROM} ,${TO} p" | grep " source:" | awk ' {print $2}' | cut -d' "' -f2)
57
- VERSION=$( echo " ${YAML_FILE_CONTENT} " | sed -n " ${FROM} ,${TO} p" | grep " version:" | awk ' {print $2}' | cut -d' "' -f2 || echo " master " )
57
+ VERSION=$( echo " ${YAML_FILE_CONTENT} " | sed -n " ${FROM} ,${TO} p" | grep " version:" | awk ' {print $2}' | cut -d' "' -f2 || echo " main " )
58
58
GIT_CLONE_PATH=$( echo " ${YAML_FILE_CONTENT} " | sed -n " ${FROM} ,${TO} p" | grep " path:" | awk ' {print $2}' | cut -d' "' -f2 || echo " ${DEFAULT_GIT_CLONE_PATH} " )
59
59
cloneRepo ${SOURCE} ${VERSION} ${GIT_CLONE_PATH%/ } /${DIR_NAMES[$i]%: }
60
60
done
You can’t perform that action at this time.
0 commit comments