summaryrefslogtreecommitdiff
path: root/new-doc
diff options
context:
space:
mode:
Diffstat (limited to 'new-doc')
-rwxr-xr-xnew-doc3
1 files changed, 2 insertions, 1 deletions
diff --git a/new-doc b/new-doc
index 74aea1e..f311766 100755
--- a/new-doc
+++ b/new-doc
@@ -1,4 +1,5 @@
#!/bin/bash
+here="$(cd "$(dirname "$0")";pwd)";
cd "$(dirname "$0")"/src
if [[ $# -eq 0 ]]; then
@@ -69,5 +70,5 @@ done
ln -s "${docname//+([^\/])/..}"/../templates/du2html.xsl "$docname"/
-cd "$(dirname "$0")"
+cd "$here"
./new-tag "${tags[@]}"