Skip to content

Commit bf9dffe

Browse files
committed
Fix the circle-test.sh script
The grep needs to be after xargs because we use `-print0`.
1 parent 6af834f commit bf9dffe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

circle-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ tags=()
3232

3333
# Gather directories with a Dockerfile and sanitize the path to remove leading
3434
# a leading ./ and multiple slashes into a single slash.
35-
dockerfiles=$(find "$dir" -name nightly -prune -o -name Dockerfile -print0 | grep -v dockerlib | xargs -0 -I{} dirname {} | sed 's@^./@@' | sed 's@//*@/@g')
35+
dockerfiles=$(find "$dir" -name nightly -prune -o -name Dockerfile -print0 | xargs -0 -I{} dirname {} | grep -v dockerlib | sed 's@^./@@' | sed 's@//*@/@g')
3636
for path in $dockerfiles; do
3737
# Generate a tag by replacing the first slash with a colon and all remaining slashes with a dash.
3838
tag=$(echo $path | sed 's@/@:@' | sed 's@/@-@g')

0 commit comments

Comments
 (0)