Explorar o código

Added a temp script to move block theme folder locations

Jason Crist %!s(int64=3) %!d(string=hai) anos
pai
achega
d930764808
Modificáronse 1 ficheiros con 18 adicións e 0 borrados
  1. 18 0
      move-block-template-folders.sh

+ 18 - 0
move-block-template-folders.sh

@@ -0,0 +1,18 @@
+#!/bin/zsh
+
+# This is a temporary script used to transition all block theme folders from the old format to the new
+# /block-template-parts -> /parts
+# /block-templates -> /templates
+
+for theme in */ ; do
+
+	if test -d "./${theme}/block-template-parts"; then
+		mv "./${theme}/block-template-parts" "./${theme}/parts"
+	fi
+
+	if test -d "./${theme}/block-templates"; then
+		mv "./${theme}/block-templates" "./${theme}/templates"
+	fi
+
+done	
+