summaryrefslogtreecommitdiff
path: root/src/core/configure
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/configure')
-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