diff options
author | Eric Bélanger <snowmaniscool@gmail.com> | 2011-06-23 19:45:38 -0400 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-07-25 17:53:02 +0200 |
commit | 3040951ca09337bcfcc138f631d1a842bc8ea21f (patch) | |
tree | 8c31b6b6b4e1ac3604db2ca51d0a208d1eaaba89 /lddd | |
parent | 5d39ffb3414f1d4d13ae73ba5dbefa957c92dfe6 (diff) |
Replace backticks by $() and add missing quotes
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com>
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
Diffstat (limited to 'lddd')
-rwxr-xr-x | lddd | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -25,9 +25,9 @@ for tree in $PATH $libdirs $extras; do -name '*.mcopclass' ! -name '*.mcoptype') IFS=$ifs for i in $files; do - if [ `file $i | grep -c 'ELF'` -ne 0 ]; then + if [ $(file $i | grep -c 'ELF') -ne 0 ]; then # Is an ELF binary. - if [ `ldd $i 2>/dev/null | grep -c 'not found'` -ne 0 ]; then + if [ $(ldd $i 2>/dev/null | grep -c 'not found') -ne 0 ]; then # Missing lib. echo "$i:" >> $TEMPDIR/raw.txt ldd $i 2>/dev/null | grep 'not found' >> $TEMPDIR/raw.txt |