Commit 9fec796
committed
Fix ghcr-upload.sh: null byte crash from binary NAR in store-paths.txt
The old code piped `nix-store --export` (binary NAR output containing
null bytes) through `tee store-paths.txt`, then used `tail -n 1` on
that binary file inside $() — bash on Ubuntu 24.04 errors out with
"command substitution: ignored null byte in input".
Fix: capture the text path list from `nix-store -qR` in a variable
first, then use grep to verify the -env.sh script is in the closure.1 parent a09f39d commit 9fec796
1 file changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
15 | 19 | | |
0 commit comments