commit 431811eab4685e81e090950c2fe011adde5f96a0
Author: Elan Ruusamäe <[email protected]>
Date:   Thu Mar 21 20:25:21 2013 +0200

    cd to script working dir

 update-geoip.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/update-geoip.sh b/update-geoip.sh
index c95589c..2577ff9 100755
--- a/update-geoip.sh
+++ b/update-geoip.sh
@@ -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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/431811eab4685e81e090950c2fe011adde5f96a0

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to