diff --git a/init.sh b/init.sh index d0375a6..7622121 100755 --- a/init.sh +++ b/init.sh @@ -1,4 +1,10 @@ #!/bin/bash +if [[ $(pwd) == *template* ]] +then + echo "Don't run this in the template directory!" + echo "Rename the current folder or edit init.sh to do this anyways" + exit +fi { ## DO NOT REMOVE THIS OR EVERYTHING BLOWS UP source config find -type f | xargs sed -i "s/\$mainfile/$(printf '%s\n' "$mainfile" | sed -e 's/[\/&]/\\&/g')/g"