From 251c79b66fd552a7499e96d7ab13e3e36c726e00 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Thu, 17 Jan 2019 21:24:41 -0500 Subject: Update Linux install scripts. --- scripts/linux-setup.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) mode change 100755 => 100644 scripts/linux-setup.sh (limited to 'scripts/linux-setup.sh') diff --git a/scripts/linux-setup.sh b/scripts/linux-setup.sh old mode 100755 new mode 100644 index 4c9be22e..43c6ec88 --- 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() -- cgit v1.3.1