8eb43c15 |
QUICKSTARTS_DIR="${OS_ROOT}/examples/quickstarts"
(
cd "${QUICKSTARTS_DIR}"
rm -vf *.{json,yaml,yml}
# Assume the README.md file contains lines with URLs for the raw json/yaml file to be downloaded.
# Specifically look for a line containing https://raw.githubusercontent.com, then
# look for the first content in ()s on that line, which will be the actual url of the file,
# then use curl to pull that file down.
curl -# $(grep https://raw.githubusercontent.com README.md | sed -E 's/.*\((.*)\) -.*/\1 -O/')
) |