From 3110dd1ebdf22bf7c0846b91af0940e38b335663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig-=C3=98rjan=20Smelror?= Date: Wed, 31 Jan 2024 17:31:37 +0100 Subject: [PATCH] Debug zsh --- qsgen2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qsgen2 b/qsgen2 index 9526c39..1e0ed0a 100755 --- a/qsgen2 +++ b/qsgen2 @@ -105,12 +105,12 @@ else fi debug=true if (${debug}); then - qsconfig=$( cat $(pwd)/config | grep -v \# | awk '{print substr($0, index($0, " ") + 1)}' ) + qsconfig=( $( cat $(pwd)/config | grep -v \# | awk '{print substr($0, index($0, " ") + 1)}' ) ) # qsconfig=$(<${qsconfig}) echo "${red}Contents of Config file:${end}" - for lines in ${qsconfig} + for qslines in ${qsconfig[@]} do - echo "${yellow}${lines}${end}" + echo "${yellow}- ${qslines}${end}" done #echo "${yellow} - site_name=${site_name}${end}" #echo "${yellow} - site_tagline=${site_tagline}${end}"