Skip to content

Commit f190ba1

Browse files
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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Follow the steps below to just install depthai api library dependencies for your
1616

1717
.. code-block:: bash
1818
19-
bash -c "$(curl -fL https://docs.luxonis.com/install_dependencies.sh)"
19+
curl -fL https://docs.luxonis.com/install_dependencies.sh | bash
2020
2121
Please refer to :ref:`documentation below <macOS>` if any issues occur.
2222

0 commit comments

Comments
 (0)