toolchain/wrapper: replace legacy backticks with $()
authorRosen Penev <rosenp@gmail.com>
Mon, 30 Dec 2019 03:41:16 +0000 (19:41 -0800)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Tue, 31 Dec 2019 00:00:04 +0000 (01:00 +0100)
This replaces deprecated backticks by more versatile $(...) syntax.

Found with shellcheck.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
[alter commit title, extend commit message]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/toolchain/files/wrapper.sh

index 445212838269f3e572edc72358777b74da588229..bd4996cac278add38ceed7af04c7d2e06c4c18da 100755 (executable)
 #
 
 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=''