projects
/
openwrt
/
staging
/
nbd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12795ec
)
scripts/strip-kmod.sh: replace legacy backticks with $()
author
Rosen Penev
<rosenp@gmail.com>
Tue, 31 Dec 2019 02:18:03 +0000
(18:18 -0800)
committer
Adrian Schmutzler
<freifunk@adrianschmutzler.de>
Tue, 31 Dec 2019 10:38:06 +0000
(11:38 +0100)
This replaces deprecated backticks by more versatile $(...) syntax.
Found with shellcheck.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
[slightly adjusted commit title, added commit message]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
scripts/strip-kmod.sh
patch
|
blob
|
history
diff --git
a/scripts/strip-kmod.sh
b/scripts/strip-kmod.sh
index 313015b909af6957d8b24f36b489c5b1c7e11974..7886cd907f0a278a9b38a0586cd96e268db51deb 100755
(executable)
--- a/
scripts/strip-kmod.sh
+++ b/
scripts/strip-kmod.sh
@@
-50,6
+50,6
@@
$3 && $2 ~ /[brtd]/ && $3 !~ /\$LC/ && !def[$3] {
}
' > "$MODULE.tmp1"
-${CROSS}objcopy
`cat ${MODULE}.tmp1`
${MODULE}.tmp ${MODULE}.out
+${CROSS}objcopy
$(cat ${MODULE}.tmp1)
${MODULE}.tmp ${MODULE}.out
mv "${MODULE}.out" "${MODULE}"
rm -f "${MODULE}".t*