Update gravity.sh

This commit is contained in:
Leo 2016-01-21 17:19:09 -05:00
parent 1349f584be
commit 8b18fdd322

View file

@ -14,13 +14,13 @@
if [[ $EUID -eq 0 ]];then if [[ $EUID -eq 0 ]];then
echo "You are root." echo "You are root."
else else
echo "::: sudo will be used for the install." echo "::: sudo will be used."
# Check if it is actually installed # Check if it is actually installed
# If it isn't, exit because the install cannot complete # If it isn't, exit because the install cannot complete
if [[ $(dpkg-query -s sudo) ]];then if [[ $(dpkg-query -s sudo) ]];then
export SUDO="sudo" export SUDO="sudo"
else else
echo "::: Please install sudo or run this as root." echo "::: Please install sudo or run this script as root."
exit 1 exit 1
fi fi
fi fi