diff --git a/qsgen2 b/qsgen2 index 1e0ed0a..abc52be 100755 --- a/qsgen2 +++ b/qsgen2 @@ -1,6 +1,6 @@ #!/usr/bin/zsh -set -x +# set -x # Quick Site Generator 2 is a static website generator inspired by Nikola. # It is written for the Z shell (zsh) because that's what I use and also because I like it better than Bash. @@ -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 qslines in ${qsconfig[@]} + for qslines in ${qsconfig} do - echo "${yellow}- ${qslines}${end}" + echo "${yellow}${qslines}${end}" done #echo "${yellow} - site_name=${site_name}${end}" #echo "${yellow} - site_tagline=${site_tagline}${end}"