diff --git a/scripts/update-ubo-assets.sh b/scripts/update-ubo-assets.sh index 7a5d9b8..e1e9331 100755 --- a/scripts/update-ubo-assets.sh +++ b/scripts/update-ubo-assets.sh @@ -40,5 +40,11 @@ add_filter_list "LegitimateURLShortener" '{ echo "-> Writing to assets/uBOAssets.json" echo $assets | jq -c >./assets/uBOAssets.json +if [[ "$(read -e -p '-? Commit changes? [y/N] '; echo $REPLY)" == [Yy]* ]]; then + echo "-> Committing changes" + git add assets/uBOAssets.json + git commit -m "Update uBOAssets.json with latest changes" +fi + echo echo "Done!"