aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2019-12-31 18:06:27 -0800
committerJo-Philipp Wich <jo@mein.io>2020-01-01 17:00:38 +0100
commitdec46a9ea0935f5f3a24626581c44ec4f1fbd676 (patch)
treea6c82b6e7ab2d70d6cceea8302fb2e1e24729200 /scripts
parent9f7d36d1a995c03a8eaccf10f06f57332bc5c1c0 (diff)
downloadupstream-dec46a9ea0935f5f3a24626581c44ec4f1fbd676.tar.gz
upstream-dec46a9ea0935f5f3a24626581c44ec4f1fbd676.tar.bz2
upstream-dec46a9ea0935f5f3a24626581c44ec4f1fbd676.zip
scripts/gen-dependencies.sh: replace backticks with $()
Found with shellcheck. Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/gen-dependencies.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/gen-dependencies.sh b/scripts/gen-dependencies.sh
index 0aa01b78ec..01bb5ac037 100755
--- a/scripts/gen-dependencies.sh
+++ b/scripts/gen-dependencies.sh
@@ -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 }'