File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,11 +41,11 @@ function cloneRepo
4141
4242function parseYaml
4343{
44- YAML_FILE_CONTENT=$( cat ${1} | egrep -v " ^\s*#" )
44+ YAML_FILE_CONTENT=$( cat ${1} | grep -E -v " ^\s*#" )
4545 DEFAULT_GIT_CLONE_PATH=${2}
4646 LAST_LINE_NUMBER=" $( echo " ${YAML_FILE_CONTENT} " | wc -l | awk ' {print $1}' ) "
47- mapfile -t LINE_NUMBERS < <( echo " ${YAML_FILE_CONTENT} " | cat -n | egrep - v " source:|version:|path:" | egrep " [0-9]{1,10}.*:\s*$" | awk ' {print $1}' )
48- mapfile -t DIR_NAMES < <( echo " ${YAML_FILE_CONTENT} " | cat -n | egrep - v " source:|version:|path:" | egrep " [0-9]{1,10}.*:\s*$" | awk ' {print $2}' )
47+ mapfile -t LINE_NUMBERS < <( echo " ${YAML_FILE_CONTENT} " | cat -n | grep -E - v " source:|version:|path:" | grep -E " [0-9]{1,10}.*:\s*$" | awk ' {print $1}' )
48+ mapfile -t DIR_NAMES < <( echo " ${YAML_FILE_CONTENT} " | cat -n | grep -E - v " source:|version:|path:" | grep -E " [0-9]{1,10}.*:\s*$" | awk ' {print $2}' )
4949 for (( i= 0 ; i < ${# LINE_NUMBERS[@]} ; ++ i ))
5050 do
5151 FROM=$( expr ${LINE_NUMBERS[$i]} + 1)
You can’t perform that action at this time.
0 commit comments