Skip to content

Commit

Permalink
Added generation of package_updates.json to create_package_pages.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jgmdev committed Mar 9, 2021
1 parent a8511b1 commit f7d86ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions create_package_pages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,11 @@ EOF
fi
done < _data/packages.json

echo "Generating package_updates.json..."
if which jq > /dev/null 2>&1 ; then
jq 'sort_by(.builddate) | reverse | [limit(10;.[])]' \
_data/packages.json > _data/package_updates.json
fi

# return false if no changes occurred.
exit $changes

0 comments on commit f7d86ee

Please sign in to comment.