diff options
author | erdgeist <erdgeist@erdgeist.org> | 2012-09-08 15:17:02 +0000 |
---|---|---|
committer | erdgeist <erdgeist@erdgeist.org> | 2012-09-08 15:17:02 +0000 |
commit | 5f9fafd80f08b53c62ba6255a85b78a3b5d4232b (patch) | |
tree | 939d2a740ef279ca6902b1020cc22ef2a572f475 /ezjail-admin | |
parent | 4037d12aaadf376fcdd6b63a58bb9932b287b9fc (diff) |
make ezjail-admin list not print an error when there are no jails
Diffstat (limited to 'ezjail-admin')
-rwxr-xr-x | ezjail-admin | 2 |
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 "--- ---- --------------- ------------------------------ ------------------------" |