Skip to content

Commit 8a3c5cc

Browse files
Beat Bolligitster
authored andcommitted
t/t1*: merge a "grep | sed" pipeline
Signed-off-by: Beat Bolli <[email protected]> Acked-by: Taylor Blau <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent af7dd8b commit 8a3c5cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t1509/prepare-chroot.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ rsync --exclude-from t/t1509/excludes -Ha . "$R$(pwd)"
4343
# env might slip through, see test-lib.sh, unset.*PERL_PATH
4444
sed 's|^PERL_PATH=.*|PERL_PATH=/bin/true|' GIT-BUILD-OPTIONS > "$R$(pwd)/GIT-BUILD-OPTIONS"
4545
for cmd in git $BB;do
46-
ldd $cmd | grep '/' | sed 's,.*\s\(/[^ ]*\).*,\1,' | while read i; do
46+
ldd $cmd | sed -n '/\//s,.*\s\(/[^ ]*\).*,\1,p' | while read i; do
4747
mkdir -p "$R$(dirname $i)"
4848
cp "$i" "$R/$i"
4949
done

0 commit comments

Comments
 (0)