From 48e5c41e67c16b83245f7ada893e92f11205a267 Mon Sep 17 00:00:00 2001 From: arno Date: Thu, 25 Nov 2010 21:25:13 +0100 Subject: [PATCH] fixes: updategeoip and updategeonames failed when not run from cwd --- scripts/updategeoip.sh | 3 +-- scripts/updategeonames.sh | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/updategeoip.sh b/scripts/updategeoip.sh index 1626bb3..2ac398d 100755 --- a/scripts/updategeoip.sh +++ b/scripts/updategeoip.sh @@ -3,8 +3,7 @@ set -e GEOIPDB=http://geolite.maxmind.com/download/geoip/database/GeoIPCountryCSV.zip -EXECDIR=$PWD/${0%/*} -. $EXECDIR/db_auth.sh +. ${0%/*}/db_auth.sh usage() { echo Usage: ${0##*/} [options] diff --git a/scripts/updategeonames.sh b/scripts/updategeonames.sh index 04712fe..e6ce263 100755 --- a/scripts/updategeonames.sh +++ b/scripts/updategeonames.sh @@ -3,8 +3,7 @@ set -e GEONAMESXML=http://ws.geonames.org/countryInfo -EXECDIR=$PWD/${0%/*} -. $EXECDIR/db_auth.sh +. ${0%/*}/db_auth.sh usage() { echo Usage: ${0##*/} [options] -- 2.39.2