Commit 2cf48cd
committed
fix: use printf instead of echo for ANSI escape sequences
Replaced echo with printf for lines containing ANSI color codes
to improve portability across different shells.
Fixes Codacy warnings:
- Line 44: echo → printf for color formatting
- Line 45: echo → printf with proper format string
- Line 51: echo → printf in loop with format placeholders
The echo command's handling of escape sequences is not
standardized across shells. printf is the portable solution
and is recommended by POSIX for formatted output.1 parent 56e49d5 commit 2cf48cd
1 file changed
Lines changed: 12 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
0 commit comments