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
41
41
42
42
function parseYaml
43
43
{
44
- YAML_FILE_CONTENT=$( cat ${1} | egrep -v " ^\s*#" )
44
+ YAML_FILE_CONTENT=$( cat ${1} | grep -E -v " ^\s*#" )
45
45
DEFAULT_GIT_CLONE_PATH=${2}
46
46
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}' )
49
49
for (( i= 0 ; i < ${# LINE_NUMBERS[@]} ; ++ i ))
50
50
do
51
51
FROM=$( expr ${LINE_NUMBERS[$i]} + 1)
You can’t perform that action at this time.
0 commit comments