Debug zsh
This commit is contained in:
parent
1fd211f0ce
commit
a05b718de5
14
qsgen2
14
qsgen2
@ -1,6 +1,7 @@
|
|||||||
#!/usr/bin/zsh
|
#!/usr/bin/zsh
|
||||||
|
|
||||||
# set -x
|
set -x
|
||||||
|
trap 'read -k1' DEBUG
|
||||||
|
|
||||||
# Quick Site Generator 2 is a static website generator inspired by Nikola.
|
# 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.
|
# It is written for the Z shell (zsh) because that's what I use and also because I like it better than Bash.
|
||||||
@ -103,23 +104,14 @@ else
|
|||||||
echo "${yellow} - Please create the file 'config' in your project directory.${end}"
|
echo "${yellow} - Please create the file 'config' in your project directory.${end}"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
debug=true
|
|
||||||
if (${debug}); then
|
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}"
|
echo "${red}Contents of Config file:${end}"
|
||||||
for qslines in ${qsconfig}
|
for qslines in ${qsconfig}
|
||||||
do
|
do
|
||||||
echo "${yellow}${qslines}${end}"
|
echo "${yellow}${qslines}${end}"
|
||||||
done
|
done
|
||||||
#echo "${yellow} - site_name=${site_name}${end}"
|
|
||||||
#echo "${yellow} - site_tagline=${site_tagline}${end}"
|
|
||||||
#echo "${yellow} - theme=${theme}${end}"
|
|
||||||
#echo "${yellow} - project_dir=${project_dir}${end}"
|
|
||||||
#echo "${yellow} - www_root=${www_root}${end}"
|
|
||||||
#echo "${yellow} - blog_in_index=${blog_in_index}${end}"
|
|
||||||
#echo "${yellow} - generator=${generator}${end}"
|
|
||||||
#echo "${yellow} - sitemap=${sitemap}${end}"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
function _msg() {
|
function _msg() {
|
||||||
|
Loading…
Reference in New Issue
Block a user