Skip to content

Commit 57607cd

Browse files
authored
Merge pull request #93 from benjyw/script_fixes
Two fixes to the humbug.bash script
2 parents 20986e7 + 0a8e55c commit 57607cd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/humbug.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ echo "Processing in batches of size BUGOUT_SEARCH_LIMIT=$BUGOUT_SEARCH_LIMIT"
6464
OFFSET=0
6565
while [ "$OFFSET" -lt "$TOTAL_RESULTS" ]
6666
do
67-
OUTPUT_FILE="$BUGOUT_OUTPUT_DIRECTORY/$OFFSET.json"
67+
OUTPUT_FILE="$BUGOUT_OUTPUT_DIRECTORY/$(printf "%07d" $OFFSET).json"
6868
echo "Processing $BUGOUT_SEARCH_LIMIT items with offset $OFFSET into $OUTPUT_FILE"
69-
bugout entries search "$SEARCH_QUERY" --limit "$BUGOUT_SEARCH_LIMIT" --offset "$OFFSET" > "$OUTPUT_FILE"
69+
bugout entries search "$SEARCH_QUERY" --params order=asc --limit "$BUGOUT_SEARCH_LIMIT" --offset "$OFFSET" > "$OUTPUT_FILE"
7070
OFFSET=$((OFFSET + BUGOUT_SEARCH_LIMIT))
7171
done

0 commit comments

Comments
 (0)