summaryrefslogtreecommitdiff
path: root/ezjail.sh
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2006-07-16 12:14:47 +0000
committererdgeist <erdgeist@erdgeist.org>2006-07-16 12:14:47 +0000
commit8bc81f4805ae65aa240faa0b814ea3b0381d353b (patch)
tree4712e8bb5add525f6c2e73770f5b80afcc73afca /ezjail.sh
parent68d3204a0c80bafac7e8ba9da93b20fdbe4e95fa (diff)
A much more sexy way of listing jails
Diffstat (limited to 'ezjail.sh')
-rwxr-xr-xezjail.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ezjail.sh b/ezjail.sh
index 5925392..b51f515 100755
--- a/ezjail.sh
+++ b/ezjail.sh
@@ -44,7 +44,7 @@ do_cmd()
44 ezjail_list=`echo -n $* | tr -c '[:alnum:] ' '_'` 44 ezjail_list=`echo -n $* | tr -c '[:alnum:] ' '_'`
45 ezjail_fromrc="NO" 45 ezjail_fromrc="NO"
46 else 46 else
47 ezjail_list=`find -X ${ezjail_prefix}/etc/ezjail/ 2> /dev/null | xargs rcorder | xargs basename -a` 47 [ -d ${ezjail_prefix}/etc/ezjail/ ] && cd ${ezjail_prefix}/etc/ezjail/ && ezjail_list=`ls | xargs rcorder`
48 echo -n "${message##_}" 48 echo -n "${message##_}"
49 fi 49 fi
50 50