From 8a2b7cdb29ff6a56d06e8f83fc098def40e1ed51 Mon Sep 17 00:00:00 2001 From: Ross Brattain Date: Thu, 9 Mar 2017 00:53:12 -0800 Subject: ubuntu-server-cloudimg-modify.sh: shellcheck fixes fixes for shellcheck warning ubuntu-server-cloudimg-modify.sh:51:23: warning: Quote this to prevent word splitting. [SC2046] ubuntu-server-cloudimg-modify.sh:51:30: note: Double quote to prevent globbing and word splitting. [SC2086] Change-Id: I6cff0713a0471e5ce94211d42a7c8b45e3761c4d Signed-off-by: Ross Brattain --- tools/ubuntu-server-cloudimg-modify.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ubuntu-server-cloudimg-modify.sh b/tools/ubuntu-server-cloudimg-modify.sh index ce320a205..50671159b 100755 --- a/tools/ubuntu-server-cloudimg-modify.sh +++ b/tools/ubuntu-server-cloudimg-modify.sh @@ -48,7 +48,7 @@ EOF apt-get update if [[ "${YARD_IMG_ARCH}" = "arm64" && "$release" = "vivid" ]]; then apt-get install -y \ - linux-headers-$(echo $CLOUD_KERNEL_VERSION | cut -d'-' -f3,4,5) \ + linux-headers-"$(echo ${CLOUD_KERNEL_VERSION} | cut -d'-' -f3,4,5)" \ unzip #resize root partition (/dev/vdb1) It is supposed to be default but the image is booted differently for arm64 cat </etc/cloud/cloud.cfg.d/15_growpart.cfg -- cgit 1.2.3-korg