Skip to content

Commit

Permalink
fix grep Vs ack-grep issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal committed Feb 20, 2017
1 parent a45fe6c commit fe3b924
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions get_latest_dumps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ACCEPT="Accept-Encoding: gzip, deflate"
D_URL_LIST="http://discogs-data.s3-us-west-2.amazonaws.com/?delimiter=/&prefix=data/"$(date +"%Y")"/"
D_URL_DIR="http://discogs-data.s3-us-west-2.amazonaws.com/data/"$(date +"%Y")"/"
D_TMP=/tmp/discogs.urls
D_PATTERN="discogs_\d+_(artists|labels|masters|releases).xml.gz"
D_PATTERN="discogs_[0-9]{8}_(artists|labels|masters|releases).xml.gz"

TEST=""
[[ "$1" == '--test' ]] && TEST='--spider -S'
Expand All @@ -17,4 +17,4 @@ for f in `wget -c --user-agent="$USER_AGENT" --header="$ACCEPT" -qO- $D_URL_LIST
echo $D_URL_DIR$f >> $D_TMP
done

wget -c --user-agent="$USER_AGENT" --header="$ACCEPT" --no-clobber --input-file=$D_TMP $TEST -q --show-progress
wget -c --user-agent="$USER_AGENT" --header="$ACCEPT" --no-clobber --input-file=$D_TMP $TEST --progress=bar

0 comments on commit fe3b924

Please sign in to comment.