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
5656
5757or alternatively:
5858``` 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
6060```
6161
6262#### dependencies:
@@ -97,11 +97,11 @@ gitfile:
9797 # optional: path to clone the repository into (default taken from gitfile command)
9898 # relative path values are always relative to the path of the .gitfile
9999 path : ~/workspace/github/sers-dev/
100- # optional: version to checkout (defaults to master )
100+ # optional: version to checkout (defaults to main )
101101 # tags, branch names and commit hashes are all valid values
102102 # if you can run `git checkout $VERSION` it's valid
103- version : master
103+ version : main
104104` ` `
105105
106106#### 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
5454 TO=$( expr ${LINE_NUMBERS[$i + 1]} - 1)
5555 fi
5656 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 " )
5858 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} " )
5959 cloneRepo ${SOURCE} ${VERSION} ${GIT_CLONE_PATH%/ } /${DIR_NAMES[$i]%: }
6060 done
You can’t perform that action at this time.
0 commit comments