Skip to content

Commit 1f0f851

Browse files
committed
Add information messsage for macOS users about PATH configuration + Require bash version 4 and higher to avoid syntax errors
1 parent 24ba6f3 commit 1f0f851

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

docs/source/_static/install_dependencies.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,12 @@ readonly fedora_pkgs=(
117117
# libsm6 libxext6 libgl1-mesa-glx
118118
)
119119

120+
# Check Bash version
121+
if [[ "${BASH_VERSINFO:-0}" -lt 4 ]]; then
122+
echo "This script requires Bash 4.0 or higher. You are using Bash ${BASH_VERSION}. Please upgrade your Bash version."
123+
exit 1
124+
fi
125+
120126
print_action () {
121127
green="\e[0;32m"
122128
reset="\e[0;0m"

docs/source/_static/install_depthai.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,11 @@ if [[ $(uname -s) == "Darwin" ]]; then
159159
pip install pyqt5
160160
pip install packaging
161161

162+
# Inform macOS users about PATH changes
163+
echo "DepthAI has been added to your PATH in .bashrc and .zshrc (if present)."
164+
echo "If you prefer, you can manually add the following line to your .bash_profile for it to be recognized in login shells:"
165+
echo "export PATH=\$PATH:$ENTRYPOINT_DIR"
166+
162167
elif [[ $(uname -s) == "Linux" ]]; then
163168
echo _____________________________
164169
echo "Calling linux_installer.sh"

0 commit comments

Comments
 (0)