summaryrefslogtreecommitdiff
path: root/sh/cgm
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2024-10-03 14:56:02 -0700
committerXiao Pan <xyz@flylightning.xyz>2024-10-03 14:56:02 -0700
commit35ef3d36d50fe4cfd20db6f14bb0017b39319899 (patch)
tree6b74f90f392d9e3870286c2a6fd4ad3e3f715acd /sh/cgm
parentb13a0c1b7b5d24a4c0790279e10c89f94253c6c6 (diff)
curl show error when silent
Diffstat (limited to 'sh/cgm')
-rwxr-xr-xsh/cgm2
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/cgm b/sh/cgm
index 039a007..6342393 100755
--- a/sh/cgm
+++ b/sh/cgm
@@ -27,7 +27,7 @@ mkdir "$dir"
for month in $(curl -L "$url" \
| awk -F'"' '/href="[0-9]{4,4}(-[[:alnum:]]+)?\.txt(\.gz)?">\[/{print $2}'); do
{
- curl -s -L -o "$dir/$month" "$url/$month"
+ curl -sS -L -o "$dir/$month" "$url/$month"
echo "Fetched $month..."
if [ "${month##*.}" = gz ]; then
gunzip "$dir/$month"