summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-07 23:38:25 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-10-07 23:38:25 +0000
commit3324e62bae6f04e4f16f113b2e3352fae242f405 (patch)
treecfdd8d39e374619cad772aff317e2998fa078548 /src/core
parent728fe3e1d42bf8cac353787480701b0a62559272 (diff)
Merge branch 'anopeng' into anopeng-config
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1428 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core')
-rwxr-xr-xsrc/core/configure9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/core/configure b/src/core/configure
index 68d2b7713..92efecd41 100755
--- a/src/core/configure
+++ b/src/core/configure
@@ -1,5 +1,11 @@
#!/bin/sh
+oldpath=`pwd`
+
+if [ $1 ]; then
+ cd $1
+fi
+
echo2 () {
$ECHO2 "$*$ECHO2SUF" # these are defined later
}
@@ -49,5 +55,6 @@ do
fi
done
-exit 0
+cd $oldpath
+exit 0