Skip to content

Commit

Permalink
Rename function
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriyyakym authored Mar 11, 2023
1 parent b1cbed2 commit 7668484
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sitemap-urls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ decode_xml_entities() {
#
# Output:
# The URLs of all pages contained within the sitemap, printed to standard output
parse_sitemap_xml() {
parse_sitemap() {
local xml=$(fetch_xml $1)

# Skip if fetching the XML file failed
Expand All @@ -80,8 +80,8 @@ parse_sitemap_xml() {

for xml_url in "${sub_sitemaps[@]}"
do
parse_sitemap_xml $xml_url
parse_sitemap $xml_url
done
}

parse_sitemap_xml $1
parse_sitemap $1

0 comments on commit 7668484

Please sign in to comment.