Signed-off-by: Philip Joseph <philip.joseph@riftio.com>
###############################################################################
# Find the platform
-if python -mplatform | grep -qi fedora; then
+PYTHON=python
+if [[ ! -f /usr/bin/python ]]; then
+ PYTHON=python3
+fi
+
+if $PYTHON -mplatform | grep -qi fedora; then
PLATFORM=fc20
-elif python -mplatform | grep -qi ubuntu; then
+elif $PYTHON -mplatform | grep -qi ubuntu; then
PLATFORM=ub16
else
echo "Unknown platform"