Skip to content

Commit 2e910de

Browse files
rel-rpaths: Fix syntax error in grep expression
Previous patch introduced an error, as new regex passed to grep was treated as as separate argument, and a filename consequently. To avoid problem bu still have sensible line width, use multiple -e options, instead of '\|'. Signed-off-by: Anton Kolesov <[email protected]>
1 parent 55530cf commit 2e910de

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

rel-rpaths.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ fi
5050

5151
# Get list of x86/x86_64 executables
5252
files=$(find -type f -exec file {} \; | \
53-
grep 'ELF 32-bit LSB executable, Intel 80386\|ELF 64-bit LSB executable, x86-64'\
54-
'\|ELF 64-bit LSB executable, AMD x86-64' | \
53+
grep -e 'ELF 32-bit LSB executable, Intel 80386' \
54+
-e 'ELF 64-bit LSB executable, x86-64' \
55+
-e 'ELF 64-bit LSB executable, AMD x86-64' | \
5556
${SED} -e 's/:.*$//')
5657

5758
for f in $files; do

0 commit comments

Comments
 (0)