From 5f9fafd80f08b53c62ba6255a85b78a3b5d4232b Mon Sep 17 00:00:00 2001
From: erdgeist <erdgeist@erdgeist.org>
Date: Sat, 8 Sep 2012 15:17:02 +0000
Subject: make ezjail-admin list not print an error when there are no jails

---
 ezjail-admin | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ezjail-admin b/ezjail-admin
index b27d871..55311ac 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -836,7 +836,7 @@ list)
   [ $# -eq 1 ] || exerr ${ezjail_usage_list}
   unset ezjail_list
 
-  cd ${ezjail_jailcfgs} && ezjail_list=`rcorder *`
+  cd ${ezjail_jailcfgs} && ezjail_list=`ls -A | xargs rcorder`
 
   printf "%-3s %-4s %-15s %-30s %s\\n" STA JID IP Hostname "Root Directory"
   echo   "--- ---- --------------- ------------------------------ ------------------------"
-- 
cgit v1.2.3