File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ stacks_dir=${STACKS_DIR:- stacks}
4
+
3
5
diff=$( git diff origin/main HEAD --name-only)
4
6
5
7
changed_stacks=()
6
8
7
9
if [ " $TEST_DELTA " == " true" ]; then
8
10
for file in $diff ; do
9
- if [[ $file =~ stacks \/ (.* )\/ devfile\. yaml ]]; then
11
+ if [[ $file =~ ${stacks_dir} \/ (.* )\/ devfile\. yaml ]]; then
10
12
changed_stacks+=(${BASH_REMATCH[1]} )
11
13
fi
12
14
done
13
15
else
14
- for file in $( find stacks -name devfile.yaml) ; do
15
- if [[ $file =~ stacks \/ (.* )\/ devfile\. yaml ]]; then
16
+ for file in $( find ${stacks_dir} -name devfile.yaml) ; do
17
+ if [[ $file =~ ${stacks_dir} \/ (.* )\/ devfile\. yaml ]]; then
16
18
changed_stacks+=(${BASH_REMATCH[1]} )
17
19
fi
18
20
done
Original file line number Diff line number Diff line change 2
2
3
3
set -x
4
4
5
- stacksDir=${STACKS_DIR :- " $( pwd) /stacks" }
5
+ stacksDir=" $( pwd) /${STACKS_DIR :- stacks} "
6
6
stackDirs=${STACKS:- " $( bash " $( pwd) /tests/get_stacks.sh" ) " }
7
7
8
8
ginkgo run --procs 2 \
You can’t perform that action at this time.
0 commit comments