scripts/mkits.sh: add missing quotes
authorRosen Penev <rosenp@gmail.com>
Mon, 6 Jan 2020 02:31:18 +0000 (18:31 -0800)
committerPetr Štetiar <ynezz@true.cz>
Sat, 11 Jul 2020 12:42:32 +0000 (14:42 +0200)
Found with shellcheck.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
scripts/mkits.sh

index def3d3c7c23c0f4e5ae7dee6b8bb72788f0637d3..53b9ec5f20c1635429630508d075682bf13729c0 100755 (executable)
@@ -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
@@ -115,4 +115,4 @@ ${FDT_NODE}
 };"
 
 # Write .its file to disk
-echo "$DATA" > ${OUTPUT}
+echo "$DATA" > "${OUTPUT}"