Skip to content

Commit

Permalink
fix missing $ (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
elliottback authored Sep 18, 2023
1 parent 76bc489 commit d6d2406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion download-wiki.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ while read -r line; do
mkdir -p "${TARGET_PAGE_MD%/*}"
HTTP_CODE=$(curl -sfL -o "$SOURCE_PAGE_JSON" -w '%{http_code}' --user-agent "$USER_AGENT" "https://www.reddit.com/r/$SUBREDDIT/wiki/$PAGE.json")

if ! [[ "HTTP_CODE" =~ ^2 ]]; then
if ! [[ "$HTTP_CODE" =~ ^2 ]]; then
echo "ERROR: server returned HTTP code $HTTP_CODE, skipping: $PAGE"
continue
fi
Expand Down

0 comments on commit d6d2406

Please sign in to comment.