Commit b5b7b97
committed
fix: run the native installer when piped to bash
install.sh guarded main behind [[ "${BASH_SOURCE[0]}" == "$0" ]]. Under the
documented `curl … | bash` entry point bash reads the script from stdin, where
BASH_SOURCE is empty and $0 is "bash": set -u aborted on the unset element, and
even without -u the comparison never matched, so main never ran. Native installs
and background auto-updates both failed with exit 1.
install-smoke only ran bash -n and shellcheck, neither of which executes the
script, so an entrypoint that never fires passed every check. Add a step that
runs the piped form for real.1 parent f06bfc0 commit b5b7b97
3 files changed
Lines changed: 22 additions & 1 deletion
File tree
- .changeset
- .github/workflows
- apps/pythinker-web/public
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
37 | 49 | | |
38 | 50 | | |
39 | 51 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
897 | 897 | | |
898 | 898 | | |
899 | 899 | | |
900 | | - | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
901 | 905 | | |
902 | 906 | | |
0 commit comments