From 78de4b0846b800934b8efcb4f4c6d2a065093a2e Mon Sep 17 00:00:00 2001
From: erdgeist <erdgeist@erdgeist.org>
Date: Sun, 14 Oct 2007 20:26:53 +0000
Subject: cosmetics

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

diff --git a/ezjail-admin b/ezjail-admin
index 41d9e89..4341cf9 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -804,12 +804,10 @@ archive)
   [ $# -gt 1 -a "${ezjail_archive}" ] && exerr "Error: Must not specify an archive location for multiple archives."
 
   # Either all or only some. Decide.
-  [ $# -gt 0 -a "${ezjail_archivealljails}" ] && exerr "Error: Must not specify an ezjail to backup with -a."
+  [ $# -gt 0 -a "${ezjail_archivealljails}" ] && exerr "Error: Must not specify an ezjail to backup with -A."
 
   # Fetch list of all ezjails
-  if [ "${ezjail_archivealljails}" ]; then
-    [ -d "${ezjail_prefix}/etc/ezjail/" ] && cd "${ezjail_prefix}/etc/ezjail/" && set - `ls | xargs rcorder`
-  fi
+  [ "${ezjail_archivealljails}" -a -d "${ezjail_prefix}/etc/ezjail/" ] && cd "${ezjail_prefix}/etc/ezjail/" && set - `ls | xargs rcorder`
 
   while [ $# -gt 0 ]; do
     # Jail name mandatory
-- 
cgit v1.2.3