Skip to content

Commit 6234752

Browse files
NagyViktclaude
andcommitted
ci: shellcheck SC1007 in flashpaste-logs.sh
`CYN= YEL= MAG= DIM= OFF= BOLD=` (with spaces between bare `=`) reads to shellcheck as five env-prefixed commands rather than empty-string assignments. The non-TTY branch was intentionally clearing all six color variables; rewrite as `CYN='' YEL='' ...` so the intent matches the syntax. Pure CI fix on top of v1.23 — no behavior change. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 44df2ff commit 6234752

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/flashpaste-logs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ set -u
2727
if [ -t 1 ]; then
2828
CYN=$'\e[36m' YEL=$'\e[33m' MAG=$'\e[35m' DIM=$'\e[2m' OFF=$'\e[0m' BOLD=$'\e[1m'
2929
else
30-
CYN= YEL= MAG= DIM= OFF= BOLD=
30+
CYN='' YEL='' MAG='' DIM='' OFF='' BOLD=''
3131
fi
3232

3333
# ── defaults ─────────────────────────────────────────────────────────────

0 commit comments

Comments
 (0)