]> dev.renevier.net Git - syj.git/commitdiff
fixes: updategeoip and updategeonames failed when not run from cwd
authorarno <arno@renevier.net>
Thu, 25 Nov 2010 20:25:13 +0000 (21:25 +0100)
committerarno <arno@renevier.net>
Thu, 25 Nov 2010 20:25:13 +0000 (21:25 +0100)
scripts/updategeoip.sh
scripts/updategeonames.sh

index 1626bb3d65e75b8b103c0e13cd2d889438615732..2ac398d2a1646a5fee2ab1fc2a99a33c1623a726 100755 (executable)
@@ -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]
index 04712fef09ed29c6378e1ce9a31e08d8119e02b2..e6ce263136f4ed06499296d7d2a1cab2d184a05e 100755 (executable)
@@ -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]