Explorar o código

remove trailing slashes

Vicente Canales hai 11 meses
pai
achega
11b87c993a
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      deploy-dotorg.sh

+ 3 - 0
deploy-dotorg.sh

@@ -36,6 +36,9 @@ rm -rf ./deploy
 # Do things for all of the themes
 # Do things for all of the themes
 for THEME_SLUG in */ ; do
 for THEME_SLUG in */ ; do
 
 
+	# Remove slashes from the theme slug
+	THEME_SLUG=${THEME_SLUG%/}
+
 	# Skip any classic themes (assuming that none of our classic themes use a theme.json file)
 	# Skip any classic themes (assuming that none of our classic themes use a theme.json file)
 	if ! test -f "./${THEME_SLUG}/theme.json"; then
 	if ! test -f "./${THEME_SLUG}/theme.json"; then
 		# echo "Ignoring classic theme ${THEME_SLUG}. Moving on."
 		# echo "Ignoring classic theme ${THEME_SLUG}. Moving on."