2024-02-27 12:46:31 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# Get the directory of the current script.
|
|
|
|
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
|
|
|
|
# The theme dir is two levels up from where this script is running.
|
|
|
|
themes_dir="$script_dir/../../themes"
|
|
|
|
|
|
|
|
# Delete the child themes if they already exist.
|
2024-03-14 12:33:33 +00:00
|
|
|
wp theme delete storefront-child__block-notices-filter
|
|
|
|
wp theme delete storefront-child__block-notices-template
|
|
|
|
wp theme delete storefront-child__classic-notices-template
|
|
|
|
wp theme delete twentytwentyfour-child__block-notices-filter
|
|
|
|
wp theme delete twentytwentyfour-child__block-notices-template
|
|
|
|
wp theme delete twentytwentyfour-child__classic-notices-template
|
2024-02-27 12:46:31 +00:00
|
|
|
|
|
|
|
# Install the child themes.
|
2024-03-14 12:33:33 +00:00
|
|
|
wp theme install "$themes_dir/storefront-child__block-notices-filter.zip"
|
|
|
|
wp theme install "$themes_dir/storefront-child__block-notices-template.zip"
|
|
|
|
wp theme install "$themes_dir/storefront-child__classic-notices-template.zip"
|
|
|
|
wp theme install "$themes_dir/twentytwentyfour-child__block-notices-filter.zip"
|
|
|
|
wp theme install "$themes_dir/twentytwentyfour-child__block-notices-template.zip"
|
|
|
|
wp theme install "$themes_dir/twentytwentyfour-child__classic-notices-template.zip"
|