summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-08-07 20:00:29 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-08-07 20:00:29 +0200
commite843fb3b4c5792ca3311aca311c9af6ea764c4fc (patch)
treec95b113c965e6f3bbe410b97e77ea0a1543c0b35 /config
parent140c187203be9d000c0cbad02fdfb7adb972937c (diff)
downloaddbscripts-e843fb3b4c5792ca3311aca311c9af6ea764c4fc.tar.gz
dbscripts-e843fb3b4c5792ca3311aca311c9af6ea764c4fc.tar.xz
determine correct dir even if config was sourced
Diffstat (limited to 'config')
-rw-r--r--config2
1 files changed, 1 insertions, 1 deletions
diff --git a/config b/config
index 5e7ab94..88e50bc 100644
--- a/config
+++ b/config
@@ -23,4 +23,4 @@ SRCEXT=".src.tar.gz"
ALLOWED_LICENSES=('GPL' 'GPL1' 'GPL2' 'LGPL' 'LGPL1' 'LGPL2')
# Override default config with config.local
-[ -f "$(dirname $0)/config.local" ] && . "$(dirname $0)/config.local"
+[ -f "$(dirname ${BASH_SOURCE[0]})/config.local" ] && . "$(dirname ${BASH_SOURCE[0]})/config.local"