Skip to content

Commit

Permalink
Add information messsage for macOS users about PATH configuration + R…
Browse files Browse the repository at this point in the history
…equire bash version 4 and higher to avoid syntax errors
  • Loading branch information
spbui00 committed Aug 22, 2024
1 parent 24ba6f3 commit 1f0f851
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/source/_static/install_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ readonly fedora_pkgs=(
# libsm6 libxext6 libgl1-mesa-glx
)

# Check Bash version
if [[ "${BASH_VERSINFO:-0}" -lt 4 ]]; then
echo "This script requires Bash 4.0 or higher. You are using Bash ${BASH_VERSION}. Please upgrade your Bash version."
exit 1
fi

print_action () {
green="\e[0;32m"
reset="\e[0;0m"
Expand Down
5 changes: 5 additions & 0 deletions docs/source/_static/install_depthai.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ if [[ $(uname -s) == "Darwin" ]]; then
pip install pyqt5
pip install packaging

# Inform macOS users about PATH changes
echo "DepthAI has been added to your PATH in .bashrc and .zshrc (if present)."
echo "If you prefer, you can manually add the following line to your .bash_profile for it to be recognized in login shells:"
echo "export PATH=\$PATH:$ENTRYPOINT_DIR"

elif [[ $(uname -s) == "Linux" ]]; then
echo _____________________________
echo "Calling linux_installer.sh"
Expand Down

0 comments on commit 1f0f851

Please sign in to comment.