summaryrefslogtreecommitdiff
path: root/scripts/linux-setup.sh
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2019-01-17 21:24:41 -0500
committerBrian Potchik <brian@vector35.com>2019-01-17 21:24:41 -0500
commit251c79b66fd552a7499e96d7ab13e3e36c726e00 (patch)
tree37bb04c1e5bedc9755dee1ce248b4bb85a158d14 /scripts/linux-setup.sh
parent5f4b0984c0f2ff59bb82b959d49b11ee534976bd (diff)
Update Linux install scripts.
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()