Commit f190ba1
authored
Update install.rst (#994)
Change MacOS install command to
`curl -fL https://docs.luxonis.com/install_dependencies.sh | bash`.
Reason:
- Install command on linux is now more similar
- Error on MacOS due to:
> Direct Execution (`bash script.sh`): When you run the script directly, any error triggers the trap, prints the custom message, and then exits. However, in a directly executed script, certain errors might be handled or bypassed differently due to explicit error handling within the script itself or because the script context allows it to continue past errors under certain conditions.
> Execution via bash -c: When you execute the script with `bash -c "$(curl -fL https://docs.luxonis.com/install_dependencies.sh)"`, the entire script is passed to Bash as a single command argument. In this context, the `ERR` trap's behavior is more immediate and global. Since the script is being treated as one continuous command, any trapped error will cause the entire command to exit, as the context is more sensitive to errors given its one-off execution nature.
The bash on mac has issues with line `["trixie/sid"]="13"` as it read "/" as a division. The error is harmless and can be ignored since the line is not accessed anyway.1 parent e873b08 commit f190ba1
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments