Ver Fonte

scripts/mkits.sh: add missing quotes

Found with shellcheck.

Signed-off-by: Rosen Penev <[email protected]>
Rosen Penev há 5 anos atrás
pai
commit
765858f7ad
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      scripts/mkits.sh

+ 2 - 2
scripts/mkits.sh

@@ -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}"