diff options
| author | Fuwn <[email protected]> | 2025-07-03 18:48:27 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-07-03 18:48:27 -0700 |
| commit | 099e2a74305ec37e05497e7e1f577c90e4fa306e (patch) | |
| tree | c1aa116912eca3141df32aca409e9d11a1fe9689 /generate_theme | |
| parent | refactor(generate_theme): Assign templates directory to variable (diff) | |
| download | zed-theme-wal-099e2a74305ec37e05497e7e1f577c90e4fa306e.tar.xz zed-theme-wal-099e2a74305ec37e05497e7e1f577c90e4fa306e.zip | |
style(generate_theme): Brace variable references
Diffstat (limited to 'generate_theme')
| -rwxr-xr-x | generate_theme | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/generate_theme b/generate_theme index 7c6e94b..fadda5d 100755 --- a/generate_theme +++ b/generate_theme @@ -18,8 +18,8 @@ while [[ $# -gt 0 ]]; do --list) echo "Available modes:" for template in "${TEMPLATES_DIRECTORY}"/*.json.template; do - if [[ -f "$template" ]]; then - echo " $(basename "$template" .json.template)" + if [[ -f "${template}" ]]; then + echo " $(basename "${template}" .json.template)" fi done exit 0 @@ -59,8 +59,8 @@ fi if [[ ! -f "${TEMPLATE_FILE}" ]]; then echo "error: mode '${MODE}' not found. Available modes:" for template in "${TEMPLATES_DIRECTORY}"/*.json.template; do - if [[ -f "$template" ]]; then - echo " $(basename "$template" .json.template)" + if [[ -f "${template}" ]]; then + echo " $(basename "${template}" .json.template)" fi done exit 1 |