This repository was archived by the owner on Feb 15, 2026. It is now read-only.
Commit d4acf4a
fix(ci): handle grep exit code 1 when .env contains only comments (#43)
The _export_unset function was failing in CI because grep -v '^#'
returns exit code 1 when no lines match (file contains only comments).
With set -o errexit, this caused the script to exit immediately.
The CI workflow creates .env with just a comment line:
# Environment file for GitHub Actions
When _export_unset tries to grep out comments, no lines match, and
grep exits with code 1, terminating the script.
Fix: Add || true to the grep command to ignore the no-match exit code.
Also removed debug statements from the previous commit.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>1 parent 9413355 commit d4acf4a
1 file changed
Lines changed: 2 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | 94 | | |
96 | 95 | | |
97 | 96 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | 97 | | |
103 | | - | |
104 | 98 | | |
105 | 99 | | |
106 | | - | |
107 | 100 | | |
108 | | - | |
109 | 101 | | |
110 | | - | |
111 | 102 | | |
112 | 103 | | |
113 | 104 | | |
| |||
122 | 113 | | |
123 | 114 | | |
124 | 115 | | |
125 | | - | |
126 | | - | |
127 | 116 | | |
128 | 117 | | |
129 | | - | |
130 | 118 | | |
131 | 119 | | |
132 | 120 | | |
| |||
427 | 415 | | |
428 | 416 | | |
429 | 417 | | |
430 | | - | |
| 418 | + | |
| 419 | + | |
431 | 420 | | |
432 | 421 | | |
433 | 422 | | |
| |||
0 commit comments