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:
parent
c17839f558
commit
de5ae91b13
1 changed files with 0 additions and 21 deletions
21
maps/maps
21
maps/maps
|
@ -22,26 +22,6 @@ getConfiguredClient()
|
||||||
fi
|
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
|
## Allows to call the users configured client without if statements everywhere
|
||||||
httpGet()
|
httpGet()
|
||||||
|
@ -192,7 +172,6 @@ getStaticMap()
|
||||||
rm -rf ~/temp > /dev/null || return 1
|
rm -rf ~/temp > /dev/null || return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
getConfiguredPython || exit 1
|
|
||||||
getConfiguredClient || exit 1
|
getConfiguredClient || exit 1
|
||||||
checkInternet || exit 1
|
checkInternet || exit 1
|
||||||
getDirections Denver Boulder || exit 1
|
getDirections Denver Boulder || exit 1
|
||||||
|
|
Loading…
Reference in a new issue