Message ID | 20240315194620.10713-16-dev+git@drbeat.li (mailing list archive) |
---|---|
State | Accepted |
Commit | 8a3c5ccc4dbb25e22c1b67c643b29d086fa84ab4 |
Headers | show |
Series | avoid redundant pipelines | expand |
diff --git a/t/t1509/prepare-chroot.sh b/t/t1509/prepare-chroot.sh index 6d47e2c725f7..dc997e0a6437 100755 --- a/t/t1509/prepare-chroot.sh +++ b/t/t1509/prepare-chroot.sh @@ -43,7 +43,7 @@ rsync --exclude-from t/t1509/excludes -Ha . "$R$(pwd)" # env might slip through, see test-lib.sh, unset.*PERL_PATH sed 's|^PERL_PATH=.*|PERL_PATH=/bin/true|' GIT-BUILD-OPTIONS > "$R$(pwd)/GIT-BUILD-OPTIONS" for cmd in git $BB;do - ldd $cmd | grep '/' | sed 's,.*\s\(/[^ ]*\).*,\1,' | while read i; do + ldd $cmd | sed -n '/\//s,.*\s\(/[^ ]*\).*,\1,p' | while read i; do mkdir -p "$R$(dirname $i)" cp "$i" "$R/$i" done
Signed-off-by: Beat Bolli <dev+git@drbeat.li> --- t/t1509/prepare-chroot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)