spicetify-themes/.github/scripts/themes-name-matcher.sh
2021-07-15 10:36:22 +02:00

13 lines
293 B
Bash
Executable File

#!/usr/bin/env bash
invalid_themes=$(find . -maxdepth 1 -type d \
! -regex "./\..*" \
! -regex "./_Extra" \
! -regex "\." \
! -regex "\./[A-Z][a-z0-9]*\(-?[A-Z][a-z0-9]*\)*")
if [[ ! -z "$invalid_themes" ]]; then
echo "Invalid theme names: $invalid_themes"
exit 1
fi