diff options
author | Rosen Penev <rosenp@gmail.com> | 2019-12-31 18:06:27 -0800 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-01-01 17:00:38 +0100 |
commit | dec46a9ea0935f5f3a24626581c44ec4f1fbd676 (patch) | |
tree | a6c82b6e7ab2d70d6cceea8302fb2e1e24729200 /scripts | |
parent | 9f7d36d1a995c03a8eaccf10f06f57332bc5c1c0 (diff) | |
download | upstream-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-x | scripts/gen-dependencies.sh | 4 |
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 }' |