diff options
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/linux-setup.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/linux-setup.sh b/scripts/linux-setup.sh index 30b7e6c3..4c9be22e 100755 --- a/scripts/linux-setup.sh +++ b/scripts/linux-setup.sh @@ -67,10 +67,12 @@ pythonpath() echo Configuring python path if [ "$USERINTERACTIVE" == "true" ] then - ${SUDO}python ${BNPATH}/scripts/install_api.py $ROOT + SILENT="-s" else - ${SUDO}python ${BNPATH}/scripts/install_api.py $ROOT -s + SILENT="" fi + python -V >/dev/null 2>&1 && ${SUDO}python ${BNPATH}/scripts/install_api.py ${ROOT} ${SILENT} + python3 -V >/dev/null 2>&1 && ${SUDO}python3 ${BNPATH}/scripts/install_api.py ${ROOT} ${SILENT} } createdesktopfile() |
