Aadhavan Srinivasan 45a136dfc3 Big commit, mostly adding best-practice changes to the script.
1. Added lines at the top to exit the script if any command in
the script fails.
2. Quoted all variable accesses.
3. Redirected error messages to stderr.
4. Used '[[' and ']]' in 'if' statements.
5. Added a debug mode, that can be triggered by setting the TRACE
environment variable to 1.
6. Used 'dirname' instead of 'PWD'. Therefore, in order to use the
script, you must place it in the same directory as your website
files. However, you can run it from anywhere as long as it is in
the correct location.
2024-02-11 00:02:55 -05:00
Description
s4g is a Stupid Simple Static-Site Generator, written in Bash.
182 KiB
Languages
Shell 100%