From 303bd77226469277eb34d9b5061a426150aa2c08 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 23 Nov 2014 23:01:08 -0500 Subject: [PATCH] Simplify if statement --- plugins/config/commands | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/config/commands b/plugins/config/commands index 616e5a473..0086a0ed4 100755 --- a/plugins/config/commands +++ b/plugins/config/commands @@ -73,7 +73,7 @@ case "$1" in fi config_create - if [ ! -f $ENV_FILE ] || [ ! -s $ENV_FILE ] ; then + if [[ ! -s $ENV_FILE ]] ; then echo "$APP has no config vars" exit 1 fi @@ -108,7 +108,7 @@ case "$1" in fi config_create - if [ ! -f $ENV_FILE ] || [ ! -s $ENV_FILE ] ; then + if [[ ! -s $ENV_FILE ]] ; then exit 1 fi