[packages/rpm-build-tools] cd to script working dir
glen
glen at pld-linux.org
Thu Mar 21 19:25:40 CET 2013
commit 431811eab4685e81e090950c2fe011adde5f96a0
Author: Elan Ruusamäe <glen at delfi.ee>
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
More information about the pld-cvs-commit
mailing list