# Updated gitignore based on existing gitignore.io API in the file
#
# gitignore.io
set -euo pipefail
[ -n "${DEBUG:-}"]&&set -x
header="Created by https://www.gitignore.io/api/"
set +eo pipefail
url="$(grep "$header" .gitignore)"
set -eo pipefail
if[ -z "$url"];then
echo
echo"No gitignore.io API url found in .gitignore"
echo
echo"You need to add the gitignore.io content to .gitignore initially to choose your selections, this script merely runs an update based on the API url recorded in the comments"