From 920c739fd21083b04b32653196a63ca37cfa6467 Mon Sep 17 00:00:00 2001 From: Petr Novota <99871801+PetrNovota@users.noreply.github.com> Date: Wed, 18 Jan 2023 18:00:47 +0100 Subject: [PATCH 1/2] installer patchl, output text formatting Console output text did not show properly for lines 230, 231 --- docs/source/_static/install_depthai.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/_static/install_depthai.sh b/docs/source/_static/install_depthai.sh index 2fe62a090..a1fae2203 100755 --- a/docs/source/_static/install_depthai.sh +++ b/docs/source/_static/install_depthai.sh @@ -227,8 +227,8 @@ else exit 99 fi -echo '\n\n:::::::::::::::: INSTALATION COMPLETE ::::::::::::::::\n' -echo '\nTo run demo app write in terminal.' +echo $'\n\n:::::::::::::::: INSTALATION COMPLETE ::::::::::::::::\n' +echo $'\nTo run demo app write in terminal.' read -rsp $'Press ANY KEY to finish and run the demo app...\n' -n1 key echo "STARTING DEMO APP." python "$DEPTHAI_DIR/launcher/launcher.py" -r "$DEPTHAI_DIR" From f8990a237f70698ece425f7e112e6f3cff94c424 Mon Sep 17 00:00:00 2001 From: Petr Novota <99871801+PetrNovota@users.noreply.github.com> Date: Wed, 18 Jan 2023 18:21:47 +0100 Subject: [PATCH 2/2] better way to evaluate backslash chars --- docs/source/_static/install_depthai.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/source/_static/install_depthai.sh b/docs/source/_static/install_depthai.sh index a1fae2203..af4ed3dca 100755 --- a/docs/source/_static/install_depthai.sh +++ b/docs/source/_static/install_depthai.sh @@ -187,7 +187,7 @@ elif [[ $(uname -s) == "Linux" ]]; then echo "Installing global dependencies." sudo wget -qO- https://docs.luxonis.com/install_dependencies.sh | bash - echo $'\nRunning Linux installer.' + echo -e '\nRunning Linux installer.' # clone depthai form git if [ -d "$DEPTHAI_DIR" ]; then @@ -227,8 +227,8 @@ else exit 99 fi -echo $'\n\n:::::::::::::::: INSTALATION COMPLETE ::::::::::::::::\n' -echo $'\nTo run demo app write in terminal.' +echo -e '\n\n:::::::::::::::: INSTALATION COMPLETE ::::::::::::::::\n' +echo -e '\nTo run demo app write in terminal.' read -rsp $'Press ANY KEY to finish and run the demo app...\n' -n1 key echo "STARTING DEMO APP." python "$DEPTHAI_DIR/launcher/launcher.py" -r "$DEPTHAI_DIR"