Even more error checking.

This commit is contained in:
Richard Goodwin
2018-10-16 12:48:07 -05:00
parent adcf8fd2de
commit f477fc4348

View File

@@ -25,7 +25,7 @@ check_variable "sharepassword"
check_variable "campercent" check_variable "campercent"
function check_pushover_enabled () { function check_pushover_enabled () {
if [ -n "${pushover_enabled+x}" ] if [ ! -z "${pushover_enabled+x}" ]
then then
if [ ! -n "${pushover_user_key+x}" ] || [ ! -n "${pushover_app_key+x}" ] if [ ! -n "${pushover_user_key+x}" ] || [ ! -n "${pushover_app_key+x}" ]
then then