From: Rosen Penev Date: Mon, 30 Dec 2019 03:41:16 +0000 (-0800) Subject: toolchain/wrapper: replace legacy backticks with $() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=19be55aa37f593066039d27c41735200d477f62b;p=openwrt%2Fstaging%2Fnoltari.git toolchain/wrapper: replace legacy backticks with $() This replaces deprecated backticks by more versatile $(...) syntax. Found with shellcheck. Signed-off-by: Rosen Penev [alter commit title, extend commit message] Signed-off-by: Adrian Schmutzler --- diff --git a/target/toolchain/files/wrapper.sh b/target/toolchain/files/wrapper.sh index 4452128382..bd4996cac2 100755 --- a/target/toolchain/files/wrapper.sh +++ b/target/toolchain/files/wrapper.sh @@ -15,10 +15,10 @@ # PROGNAME=$0 -REALNAME=`readlink -f $0` +REALNAME=$(readlink -f $0) -REALNAME_BASE=`basename $REALNAME` -REALNAME_DIR=`dirname $REALNAME` +REALNAME_BASE=$(basename $REALNAME) +REALNAME_DIR=$(dirname $REALNAME) TARGET_FUNDAMENTAL_ASFLAGS='' TARGET_FUNDAMENTAL_CFLAGS=''