make ezjail-admin list not print an error when there are no jails

This commit is contained in:
erdgeist 2012-09-08 15:17:02 +00:00
parent 4037d12aaa
commit 5f9fafd80f

View File

@ -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 "--- ---- --------------- ------------------------------ ------------------------"