scripts/gen-dependencies.sh: replace backticks with $()

Found with shellcheck.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2019-12-31 18:06:27 -08:00 committed by Jo-Philipp Wich
parent 9f7d36d1a9
commit dec46a9ea0
1 changed files with 2 additions and 2 deletions

View File

@ -24,8 +24,8 @@ find $TARGETS -type f -a -exec file {} \; | \
awk '$2 ~ /NEEDED/ && $NF !~ /interpreter/ && $NF ~ /^\[?lib.*\.so/ { gsub(/[\[\]]/, "", $NF); print $NF }' | \
sort -u
tmp=`mktemp $TMP_DIR/dep.XXXXXXXX`
for kmod in `find $TARGETS -type f -name \*.ko`; do
tmp=$(mktemp $TMP_DIR/dep.XXXXXXXX)
for kmod in $(find $TARGETS -type f -name \*.ko); do
$OBJCOPY -O binary -j .modinfo $kmod $tmp
sed -e 's,\x00,\n,g' $tmp | \
sed -ne '/^depends=.\+/ { s/^depends=//; s/,/.ko\n/g; s/$/.ko/p; q }'