scripts/mkits.sh: replace legacy backticks with $()
authorRosen Penev <rosenp@gmail.com>
Tue, 31 Dec 2019 02:21:36 +0000 (18:21 -0800)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Tue, 31 Dec 2019 10:44:04 +0000 (11:44 +0100)
This replaces deprecated backticks by more versatile $(...) syntax.

Found with shellcheck.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
[adjust commit title and message]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
scripts/mkits.sh

index 93c8cedaed5d20d4d74cad529119fb75b3fbfb83..32a978e18d1b6f769775acac269964998c283205 100755 (executable)
@@ -15,7 +15,7 @@
 #
 
 usage() {
-       echo "Usage: `basename $0` -A arch -C comp -a addr -e entry" \
+       echo "Usage: $(basename $0) -A arch -C comp -a addr -e entry" \
                "-v version -k kernel [-D name -d dtb] -o its_file"
        echo -e "\t-A ==> set architecture to 'arch'"
        echo -e "\t-C ==> set compression type 'comp'"
@@ -55,7 +55,7 @@ if [ -z "${ARCH}" ] || [ -z "${COMPRESS}" ] || [ -z "${LOAD_ADDR}" ] || \
        usage
 fi
 
-ARCH_UPPER=`echo $ARCH | tr '[:lower:]' '[:upper:]'`
+ARCH_UPPER=$(echo $ARCH | tr '[:lower:]' '[:upper:]')
 
 # Conditionally create fdt information
 if [ -n "${DTB}" ]; then