Skip to content

Instantly share code, notes, and snippets.

@cp-sumi-k
Last active March 22, 2022 11:39
Show Gist options
  • Save cp-sumi-k/1b2a707cee649675c9ed98eb8cf3f78e to your computer and use it in GitHub Desktop.
Save cp-sumi-k/1b2a707cee649675c9ed98eb8cf3f78e to your computer and use it in GitHub Desktop.
#! /bin/bash
set -e
BASE_URL=$1
BASE_API_URL=$2
API_URL="$BASE_API_URL/sitemap?baseUrl=$BASE_URL"
xml=$(curl -X GET --header "Accept: */*" $API_URL)
echo $xml >> public/sitemap.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment