diff options
author | Rosen Penev <rosenp@gmail.com> | 2019-12-30 18:21:36 -0800 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-12-31 11:44:04 +0100 |
commit | 9a8ba44f9c386f0c51280932b5756ffcdb20cc25 (patch) | |
tree | 3fa7a8881b7da153d1764c89635c4ec66356c6c9 | |
parent | 543d945f07ec439388cbe3a9ea1b193e910bb824 (diff) | |
download | upstream-9a8ba44f9c386f0c51280932b5756ffcdb20cc25.tar.gz upstream-9a8ba44f9c386f0c51280932b5756ffcdb20cc25.tar.bz2 upstream-9a8ba44f9c386f0c51280932b5756ffcdb20cc25.zip |
scripts/mkits.sh: replace legacy backticks with $()
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>
-rwxr-xr-x | scripts/mkits.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/mkits.sh b/scripts/mkits.sh index 93c8cedaed..32a978e18d 100755 --- a/scripts/mkits.sh +++ b/scripts/mkits.sh @@ -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 |