From 8a6f906148ed9e758c42d605e83c11fd7d99a2f4 Mon Sep 17 00:00:00 2001
From: erdgeist <erdgeist@erdgeist.org>
Date: Wed, 15 Nov 2006 19:13:21 +0000
Subject: I suck. It was the correct way

---
 ezjail-admin | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ezjail-admin b/ezjail-admin
index 37478f0..9ab376b 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -421,7 +421,7 @@ delete)
   fetchjailinfo $1
 
   # check for existence of jail in our records
-  [ -z "${ezjail_config}" ] || exerr "Error: Nothing known about jail ${ezjail_name}."
+  [ -n "${ezjail_config}" ] || exerr "Error: Nothing known about jail ${ezjail_name}."
 
   # if jail is still running, refuse to go any further
   [ -n "${ezjail_id}" ] && exerr "Error: Jail appears to be still running, stop it first."
@@ -609,7 +609,7 @@ config)
   fetchjailinfo $1
 
   # check for existence of jail in our records
-  [ -z "${ezjail_config}" ] || exerr "Error: Nothing known about jail ${ezjail_name}."
+  [ -n "${ezjail_config}" ] || exerr "Error: Nothing known about jail ${ezjail_name}."
 
   # Nothing to be configured?
   [ -z "${ezjail_setrunnable}" -a -z "${ezjail_new_name}" -a -z "${ezjail_imageaction}" ] && echo "Warning: No config option specified."
-- 
cgit v1.2.3