Commit 9db9981
committed
bootstrap.sh: guard version-tracking against set -e + empty pipelines
bootstrap.sh runs with 'set -euo pipefail'. The new
remote_latest_tag/remote_tip_sha helpers pipe through grep, which
exits non-zero when no tags match (e.g. CI test fixtures with empty
git repos). pipefail surfaces that to the command substitution, and
bash 4.4+ propagates it to set -e — silently aborting bootstrap
right after the version probe.
Wrap each version lookup with '|| true' so a missing tag yields an
empty string instead of killing the script. Behavior unchanged in
the normal happy path; tests pass again.1 parent 0d79881 commit 9db9981
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
76 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
| |||
100 | 103 | | |
101 | 104 | | |
102 | 105 | | |
103 | | - | |
| 106 | + | |
104 | 107 | | |
105 | 108 | | |
106 | 109 | | |
| |||
0 commit comments