Bash script to fix double braces for Jekyll Scholar

This bash script corrects double braces in bib files that break Jekyll Scholar. I use BibDesk for my citations, which uses braces around all fields. When I add braces to preserve formatting, double braces appear, like so (see Title field):

@manual{skinner2016rscorecard,
	Author = {Skinner, Benjamin T.},
	Keywords = {technical},
	Note = {R package version 0.2.4},
	Title = {{rscorecard: A Method to Download Department of Education College Scorecard Data}},
	Url = {https://CRAN.R-project.org/package=rscorecard},
	Year = {2016}}

This is a problem for Jekyll Scholar, which cannot parse the entry. This is true even when use_raw_bibtex_entry is set to true in _config.yml. Running this script on a bib file replaces the problematic double braces, {{...}}, with a double-quotation mark brace combination: "{...}":

@manual{skinner2016rscorecard,
	Author = {Skinner, Benjamin T.},
	Keywords = {technical},
	Note = {R package version 0.2.4},
	Title = "{rscorecard: A Method to Download Department of Education College Scorecard Data}",
	Url = {https://CRAN.R-project.org/package=rscorecard},
	Year = {2016}}

So far, this seems to solve my problem. Script is in the gist is below.