From: Rosen Penev Date: Tue, 31 Dec 2019 02:18:03 +0000 (-0800) Subject: scripts/strip-kmod.sh: replace legacy backticks with $() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=eae889b8f2c9c732ed86d77b189f4c19c182de77;p=openwrt%2Fstaging%2Fxback.git scripts/strip-kmod.sh: replace legacy backticks with $() This replaces deprecated backticks by more versatile $(...) syntax. Found with shellcheck. Signed-off-by: Rosen Penev [slightly adjusted commit title, added commit message] Signed-off-by: Adrian Schmutzler --- diff --git a/scripts/strip-kmod.sh b/scripts/strip-kmod.sh index 313015b909..7886cd907f 100755 --- 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*