Commit 54c8757d authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Ensure a theme is activated by startup

parent 32e26317
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -55,6 +55,10 @@ setup() {
	[[ ${#LANGUAGES[*]} -gt 0 ]] && wp language core install "${LANGUAGES[@]}"
	[[ ${#LANGUAGES[*]} -gt 0 ]] && wp language plugin install --all "${LANGUAGES[@]}"
	[[ ${#LANGUAGES[*]} -gt 0 ]] && wp language theme install --all "${LANGUAGES[@]}"

	[[ ${#THEMES[*]} -gt 0 ]] &&
	[[ $(wp theme list --status=active --format=count) -eq 0 ]] &&
	wp theme activate $(wp theme list --field=name | head -n1)
}

collect_static()