summaryrefslogtreecommitdiff
path: root/ezjail-admin
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2012-09-08 15:17:02 +0000
committererdgeist <erdgeist@erdgeist.org>2012-09-08 15:17:02 +0000
commit5f9fafd80f08b53c62ba6255a85b78a3b5d4232b (patch)
tree939d2a740ef279ca6902b1020cc22ef2a572f475 /ezjail-admin
parent4037d12aaadf376fcdd6b63a58bb9932b287b9fc (diff)
make ezjail-admin list not print an error when there are no jails
Diffstat (limited to 'ezjail-admin')
-rwxr-xr-xezjail-admin2
1 files changed, 1 insertions, 1 deletions
diff --git a/ezjail-admin b/ezjail-admin
index b27d871..55311ac 100755
--- a/ezjail-admin
+++ b/ezjail-admin
@@ -836,7 +836,7 @@ list)
836 [ $# -eq 1 ] || exerr ${ezjail_usage_list} 836 [ $# -eq 1 ] || exerr ${ezjail_usage_list}
837 unset ezjail_list 837 unset ezjail_list
838 838
839 cd ${ezjail_jailcfgs} && ezjail_list=`rcorder *` 839 cd ${ezjail_jailcfgs} && ezjail_list=`ls -A | xargs rcorder`
840 840
841 printf "%-3s %-4s %-15s %-30s %s\\n" STA JID IP Hostname "Root Directory" 841 printf "%-3s %-4s %-15s %-30s %s\\n" STA JID IP Hostname "Root Directory"
842 echo "--- ---- --------------- ------------------------------ ------------------------" 842 echo "--- ---- --------------- ------------------------------ ------------------------"