From fa055481a70762acf29af07dfa96dce5a85d6062 Mon Sep 17 00:00:00 2001 From: Dan Schaper Date: Sun, 1 Jan 2017 06:32:49 -0800 Subject: [PATCH] Shellcheck screen size Signed-off-by: Dan Schaper --- automated install/basic-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 74e049e2..8a333eb4 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -36,8 +36,8 @@ QUERY_LOGGING=true # Find the rows and columns will default to 80x24 is it can not be detected screen_size=$(stty size 2>/dev/null || echo 24 80) -rows=$(echo $screen_size | awk '{print $1}') -columns=$(echo $screen_size | awk '{print $2}') +rows=$(echo "${screen_size}" | awk '{print $1}') +columns=$(echo "${screen_size}" | awk '{print $2}') # Divide by two so the dialogs take up half of the screen, which looks nice. r=$(( rows / 2 ))