summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-11-24 11:48:42 +0100
committerErich Eckner <git@eckner.net>2017-11-24 11:48:42 +0100
commitab155c1d1f0696e681593ae66b23c59848add00c (patch)
tree13544ba59fdc17a06f7d96def253906066ef047a
parenta6f7f796ff14fbf366a605a9442b1ac996e96abb (diff)
downloadbuff-di-wuff-ab155c1d1f0696e681593ae66b23c59848add00c.tar.xz
buff-di-wuff: put download list into git directory
-rw-r--r--.gitignore1
-rwxr-xr-xbuff-di-wuff2
2 files changed, 2 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..568d945
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+downloads.list
diff --git a/buff-di-wuff b/buff-di-wuff
index 35f5f3a..5376bd6 100755
--- a/buff-di-wuff
+++ b/buff-di-wuff
@@ -6,7 +6,7 @@ cache_dir='/srv/arch-mirror/sources.archlinux32'
mkdir -p "${cache_dir}"
-grep '^[^#]' '/etc/buff-di-wuff.list' | \
+grep '^[^#]' "$(dirname "$0")/downloads.list" | \
while read -r url; do
if echo "${url}" | \
grep -q '\*[^/]*$'; then