]> dev.renevier.net Git - syj.git/blobdiff - scripts/updategeonames.sh
fixes: updategeoip and updategeonames failed when not run from cwd
[syj.git] / scripts / updategeonames.sh
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]