]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
cd to script working dir
authorElan Ruusamäe <glen@delfi.ee>
Thu, 21 Mar 2013 18:25:21 +0000 (20:25 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 21 Mar 2013 18:25:21 +0000 (20:25 +0200)
update-geoip.sh

index c95589c554ce3e9f55fe73a685fdc65baeaadd93..2577ff9b3fa547f1b916becf0e48cf6407ac5935 100755 (executable)
@@ -1,5 +1,4 @@
 #!/bin/sh
-set -x
 set -e
 
 update=false
@@ -20,6 +19,9 @@ while [ $# -gt 0 ]; do
        esac
 done
 
+dir=$(dirname "$0");
+cd "$dir"
+
 pkgs='GeoIP-db-City GeoIP-db-Country GeoIP-db-IPASNum xtables-geoip'
 for pkg in ${*:-$pkgs}; do
        $status && continue
This page took 0.077792 seconds and 4 git commands to generate.