-
Notifications
You must be signed in to change notification settings - Fork 10.7k
/
themes.sh
23 lines (19 loc) · 1.12 KB
/
themes.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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.
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
# Install the child themes.
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"