check if vars filled out

This commit is contained in:
ducoterra
2018-11-25 17:17:37 -05:00
parent adcf23c73c
commit 7e37fba048

View File

@@ -14,6 +14,19 @@ fi
# source vars
source vars
if [ $user -eq "" ] ; then
echo -e "User missing from vars."
exit 1
fi
if [ $projectname -eq "" ] ; then
echo -e "Project Name missing from vars."
exit 1
fi
if [ $hostname -eq "" ] ; then
echo -e "Hostname missing from vars."
exit 1
fi
tput setaf 2
echo -e "Installing dependencies"
tput setaf 9