2
0
mirror of https://github.com/alexanderepstein/Bash-Snippets synced 2018-11-08 02:59:35 +01:00

Removing python from maps

This commit is contained in:
Alex Epstein 2017-07-10 18:08:40 -04:00
parent c17839f558
commit de5ae91b13

View File

@ -22,26 +22,6 @@ getConfiguredClient()
fi
}
getConfiguredPython()
{
if command -v python2 &>/dev/null ; then
configuredPython="python2"
elif command -v python &>/dev/null ; then
configuredPython="python"
else
echo "Error: This tool requires python 2 to be installed."
return 1
fi
}
python()
{
case "$configuredPython" in
python2) python2 "$@";;
python) python "$@";;
esac
}
## Allows to call the users configured client without if statements everywhere
httpGet()
@ -192,7 +172,6 @@ getStaticMap()
rm -rf ~/temp > /dev/null || return 1
}
getConfiguredPython || exit 1
getConfiguredClient || exit 1
checkInternet || exit 1
getDirections Denver Boulder || exit 1