Commit cc759ce
Fix apply-profile.sh: remove dead locals, fix env var ordering, use safe heredocs
- Remove unused local variables (status, profile, previous, detail, tmpfile)
that shellcheck flagged as SC2034 — the function reads from env vars
- Fix _OVERRIDE_FILE set after the python3 command that reads it
- Use single-quoted heredocs with env vars (not ${shell_var} interpolation)
for both override and state file readers, consistent with C6 fix pattern
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 38213ea commit cc759ce
1 file changed
Lines changed: 13 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
| |||
94 | 93 | | |
95 | 94 | | |
96 | 95 | | |
97 | | - | |
98 | | - | |
| 96 | + | |
| 97 | + | |
99 | 98 | | |
100 | | - | |
| 99 | + | |
101 | 100 | | |
102 | | - | |
| 101 | + | |
103 | 102 | | |
104 | | - | |
105 | | - | |
106 | | - | |
| 103 | + | |
| 104 | + | |
107 | 105 | | |
108 | 106 | | |
109 | 107 | | |
| |||
113 | 111 | | |
114 | 112 | | |
115 | 113 | | |
116 | | - | |
117 | | - | |
| 114 | + | |
| 115 | + | |
118 | 116 | | |
119 | | - | |
| 117 | + | |
120 | 118 | | |
121 | | - | |
| 119 | + | |
122 | 120 | | |
123 | | - | |
124 | | - | |
| 121 | + | |
| 122 | + | |
125 | 123 | | |
126 | 124 | | |
127 | 125 | | |
| |||
0 commit comments