fix: Use macOS bash 3 compatible string capitalization
Some checks failed
DSS Project Analysis / dss-context-update (push) Has been cancelled
Some checks failed
DSS Project Analysis / dss-context-update (push) Has been cancelled
Replace ${skin^} (bash 4+) with sed command for cross-platform compatibility
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -87,13 +87,15 @@ EOF
|
|||||||
|
|
||||||
# Reset skins
|
# Reset skins
|
||||||
for skin in base classic workbench; do
|
for skin in base classic workbench; do
|
||||||
|
# Capitalize first letter (macOS bash 3 compatible)
|
||||||
|
skin_cap="$(echo "$skin" | sed 's/./\U&/')"
|
||||||
if [ "$skin" = "base" ]; then
|
if [ "$skin" = "base" ]; then
|
||||||
cat > "dss-claude-plugin/core/skins/${skin}.json" << EOF
|
cat > "dss-claude-plugin/core/skins/${skin}.json" << EOF
|
||||||
{
|
{
|
||||||
"meta": {
|
"meta": {
|
||||||
"id": "${skin}",
|
"id": "${skin}",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "${skin^} skin - awaiting Figma sync"
|
"description": "${skin_cap} skin - awaiting Figma sync"
|
||||||
},
|
},
|
||||||
"tokens": {}
|
"tokens": {}
|
||||||
}
|
}
|
||||||
@@ -104,7 +106,7 @@ EOF
|
|||||||
"meta": {
|
"meta": {
|
||||||
"id": "${skin}",
|
"id": "${skin}",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "${skin^} skin - awaiting Figma sync",
|
"description": "${skin_cap} skin - awaiting Figma sync",
|
||||||
"extends": "base"
|
"extends": "base"
|
||||||
},
|
},
|
||||||
"tokens": {}
|
"tokens": {}
|
||||||
|
|||||||
Reference in New Issue
Block a user