summaryrefslogtreecommitdiff
path: root/webgen
diff options
context:
space:
mode:
authorPhilipp Schafft <lion@lion.leolix.org>2016-06-19 11:27:43 +0000
committerPhilipp Schafft <lion@lion.leolix.org>2017-03-27 02:11:20 +0000
commit6e09b538393e02a84beca3dca55bd7c54ceaade8 (patch)
tree395791ed0361df90ca026b5919b00a089869d4e5 /webgen
parentaf8b482dfc507ad6580643c341c5c61aa7036ae5 (diff)
Feature: --setup now checks for the environment to be clear.
Diffstat (limited to 'webgen')
-rwxr-xr-xwebgen5
1 files changed, 5 insertions, 0 deletions
diff --git a/webgen b/webgen
index 472160f..aae2196 100755
--- a/webgen
+++ b/webgen
@@ -49,6 +49,11 @@ LANGUAGE=''
# CODE:
setup() {
+ if [ -e $TPLS -o -e Makefile ]
+ then
+ echo 'Error: Environment already initialized.' >&2
+ exit 1
+ fi
mkdir $TPLS
cd $TPLS
touch \#section-index