We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ab10527 + d55af7c commit 3eae870Copy full SHA for 3eae870
generate-stackbrew-library.sh
@@ -26,17 +26,18 @@ fileCommit() {
26
# get the most recent commit which modified "$1/Dockerfile" or any file COPY'd from "$1/Dockerfile"
27
dirCommit() {
28
local dir="$1"; shift
29
+ local copyPaths;
30
(
31
cd "$dir"
- fileCommit \
32
- Dockerfile \
33
- $(git show HEAD:./Dockerfile | awk '
34
- toupper($1) == "COPY" {
35
- for (i = 2; i < NF; i++) {
36
- print $i
37
- }
+ IFS=" " read -r -a copyPaths <<< "$(git show HEAD:./Dockerfile | awk '
+ BEGIN { ORS=" "; }
+ toupper($1) == "COPY" {
+ for (i = 2; i < NF; i++) {
+ print $i
38
}
39
- ')
+ }
+ ')"
40
+ fileCommit Dockerfile "${copyPaths[@]}"
41
)
42
43
0 commit comments