summaryrefslogtreecommitdiff
path: root/scripts/linux-setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/linux-setup.sh')
-rw-r--r--[-rwxr-xr-x]scripts/linux-setup.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/linux-setup.sh b/scripts/linux-setup.sh
index 4c9be22e..43c6ec88 100755..100644
--- a/scripts/linux-setup.sh
+++ b/scripts/linux-setup.sh
@@ -71,8 +71,14 @@ pythonpath()
else
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}
+ if [[ -x "`which python`" ]]
+ then
+ python -V >/dev/null 2>&1 && ${SUDO}python ${BNPATH}/scripts/install_api.py ${ROOT} ${SILENT}
+ fi
+ if [[ -x "`which python3`" ]]
+ then
+ python3 -V >/dev/null 2>&1 && ${SUDO}python3 ${BNPATH}/scripts/install_api.py ${ROOT} ${SILENT}
+ fi
}
createdesktopfile()