From: arno Date: Thu, 25 Nov 2010 20:25:13 +0000 (+0100) Subject: fixes: updategeoip and updategeonames failed when not run from cwd X-Git-Tag: v0.3~31 X-Git-Url: https://dev.renevier.net/?p=syj.git;a=commitdiff_plain;h=48e5c41e67c16b83245f7ada893e92f11205a267 fixes: updategeoip and updategeonames failed when not run from cwd --- 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]