commit 6b04693ef821bbbe7a88a5d82e12832ffd8b6e4b parent 67611ec3fa659f68c7b2b09b6255896d681f2159 Author: Hugo Soucy <hugo.soucy@savoirfairelinux.com> Date: Fri, 10 Mar 2017 20:05:33 -0500 Add the new config files in the main file. Diffstat:
M | fakestache | | | 9 | +++++---- |
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/fakestache b/fakestache @@ -8,8 +8,9 @@ # * Pandoc - Make sure it's installed on your machine : `$ pandoc -v`. # * Mustache - Is already includes in pantash : `lib/mo/`. -# Include the main configuration file -. config/config +# Include the main configuration files +. config/site.cfg +. config/app.cfg # Include mustache for bash . lib/mo/mo @@ -75,7 +76,7 @@ case $1 in ;; esac -if hash pandoc 2>/dev/null; then +if hash pandoc 2>/dev/null && (( ${BASH_VERSION%%.*} >= 4 )); then # Ok Pandoc is here. # Then execute main functions build_pandoc_templates @@ -88,7 +89,7 @@ if hash pandoc 2>/dev/null; then echo "- Your New Website Is Ready Here : $PUBLICHTML_PATH/ . Thanks Pandoc!!" exit 0 else - echo "- Sorry But You must Install *Pandoc* For Using *FakeStache SSG*." + echo "- Sorry But You must Install *Pandoc* and/or have Bash >= 4 To Using *FakeStache SSG*." echo "- Please Visit <http://pandoc.org/installing.html>." exit 1