Skip to content

Commit

Permalink
Use curl instead of wget
Browse files Browse the repository at this point in the history
The story seems to be that wget is incompatible with
Subject Alternative Name, which our SSL certs just switched
to using because we are now behind CloudFlare.
  • Loading branch information
paulproteus committed Jan 9, 2014
1 parent bcb773e commit 3d2b052
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run_importer.sh
Expand Up @@ -24,8 +24,8 @@ fi

URL=https://openhatch.org/+api/v1/customs/tracker_model/\?just_stale\=yes\&format\=yaml\&limit\="$MAX_TRACKERS"\&tracker_id="$TRACKER_ID"

# It's OK if wget has to try 4 times.
(wget "$URL" -O- || wget "$URL" -O- || wget "$URL" -O- || wget "$URL" -O-) > "$BUG_TRACKER_LIST"
# It's OK if curl has to try 4 times.
(curl "$URL" || curl "$URL" || curl "$URL" || curl "$URL" -O-) > "$BUG_TRACKER_LIST"

pushd ../oh-bugimporters
env/bin/python bugimporters/main.py -i "$BUG_TRACKER_LIST" -o "$SCRAPY_RESULT_FILE"
Expand Down

0 comments on commit 3d2b052

Please sign in to comment.