Skip to content

Commit 80f6866

Browse files
brenoguimMic92
andauthored
Filter with awk instead of grep
Co-authored-by: Jörg Thalheim <[email protected]>
1 parent 9f1c0af commit 80f6866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/set-rpath-library.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ fi
6161
# ALL loads should have the same alignment
6262
lib="${SCRATCH}/liboveralign.so"
6363
../src/patchelf --set-rpath "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" "$lib"
64-
num_alignments=$(${READELF} -W -l "${lib}" | grep LOAD | awk '{ print $NF }' | sort -u | wc -l)
64+
num_alignments=$(${READELF} -W -l "${lib}" | awk '/LOAD/ { print $NF }' | sort -u | wc -l)
6565
echo "$num_alignments"
6666
if test "${num_alignments}" -ne "1"; then
6767
exit 1

0 commit comments

Comments
 (0)