summaryrefslogtreecommitdiff
path: root/al32-mktorrent.sh
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-07-19 14:15:17 +0200
committerErich Eckner <git@eckner.net>2019-07-19 14:15:17 +0200
commit0fe59192d10a5bf63de32d101c4b06ad780ba30b (patch)
treeb44f400091c25c81774cb2c7531afe4dc1f372ce /al32-mktorrent.sh
parent50f94cf3debebb079be4090bd480f485dd905b28 (diff)
downloadreleng-0fe59192d10a5bf63de32d101c4b06ad780ba30b.tar.xz
al32-mktorrent.sh: search for string, not regex in directory listing
Diffstat (limited to 'al32-mktorrent.sh')
-rwxr-xr-xal32-mktorrent.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/al32-mktorrent.sh b/al32-mktorrent.sh
index 6c01aff..c557e37 100755
--- a/al32-mktorrent.sh
+++ b/al32-mktorrent.sh
@@ -53,7 +53,7 @@ function create_torrent_for_arch () {
for i in $mirrorlist ; do
echo -n -e "$fg_reset${fg_bold}Checking $fg_reset$fg_blue$i$fg_reset "
- curl --connect-timeout 10 -g "$i" 2>/dev/null | grep -q "$iso_string" && (
+ curl --connect-timeout 10 -g "$i" 2>/dev/null | grep -qF "$iso_string" && (
echo -e "$fg_reset${fg_green}OK$fg_reset"
) || ( echo -e "$fg_reset${fg_red}Failed$fg_reset" ; false ) || continue
available_mirrors=(${available_mirrors[@]} "$i")