diff --git a/inc/to-html b/inc/to-html index c7eb870..3a29dbd 100644 --- a/inc/to-html +++ b/inc/to-html @@ -52,7 +52,7 @@ to-html(){ local newFile="${file##*/}" newFile="${newFile/.md/.html}" sed -E 's/\.md( *)\)/.html\1\)/' "$file" | - pandoc -f markdown -t html --template "$templateFile" > "$destination/$newFile" + pandoc --quiet -f markdown -t html --template "$templateFile" > "$destination/$newFile" done rsync -a \ diff --git a/kb b/kb index f5d8519..508be46 100755 --- a/kb +++ b/kb @@ -330,12 +330,14 @@ mainScript() { ############## Begin Script Here ################### #################################################### if [ "${args[0]}" != "init" ]; then - #cd "$dataDir" || return + olddir="$PWD" + cd "$dataDir" || return # Check to see if datadir is a git repo if ! git rev-parse 2> /dev/null; then # If not, ensure we don't run git commands dogit=0 fi + cd "$olddir" || return fi case "${args[0]}" in