File tree 1 file changed +10
-19
lines changed
1 file changed +10
-19
lines changed Original file line number Diff line number Diff line change @@ -85,32 +85,23 @@ get_build_type() {
85
85
examples_in_rst=" $( echo " $scripts_names " | uniq ) "
86
86
fi
87
87
88
- # initialize pattern
89
- pattern=" "
90
-
91
88
# executed only if there are examples in the modified rst files
92
89
if [[ -n " $examples_in_rst " ]]
93
90
then
94
- pattern=$( $pattern ) $( echo " $examples_in_rst " | paste -sd ' |' )
91
+ if [[ -n " $changed_examples " ]]
92
+ then
93
+ changed_examples=" $changed_examples |$examples_in_rst "
94
+ else
95
+ changed_examples=" $examples_in_rst "
96
+ fi
95
97
fi
96
98
97
- # executed only if some examples have been modified
98
99
if [[ -n " $changed_examples " ]]
99
100
then
100
- pattern=$( echo $pattern ) " |" $( echo " $changed_examples " | paste -sd ' |' )
101
- fi
102
-
103
- # cut trailing initial "|" if only examples in rst need to be built
104
- if [[ $pattern = " |" ]]
105
- then
106
- pattern=$( echo " $pattern " | cut -c 2-)
107
- fi
108
-
109
- # pattern for examples to run is the last line of output
110
- if [[ -n " $pattern " ]]
111
- then
112
- echo BUILD: detected examples/ filename modified in $git_range : $pattern
113
- echo $pattern
101
+ echo BUILD: detected examples/ filename modified in $git_range : $changed_examples
102
+ pattern=$( echo " $changed_examples " | paste -sd ' |' )
103
+ # pattern for examples to run is the last line of output
104
+ echo " $pattern "
114
105
return
115
106
fi
116
107
You can’t perform that action at this time.
0 commit comments