From: Rosen Penev Date: Wed, 1 Jan 2020 02:06:27 +0000 (-0800) Subject: scripts/gen-dependencies.sh: replace backticks with $() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=dec46a9ea0935f5f3a24626581c44ec4f1fbd676;p=openwrt%2Fstaging%2Fansuel.git scripts/gen-dependencies.sh: replace backticks with $() Found with shellcheck. Signed-off-by: Rosen Penev --- 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 }'