Skip to content
Browse files

Simplify the generation of jail names

  • Loading branch information...
1 parent 33a163a commit 7d0b94180429f119ecf40086d401b79102982429 @fperrin fperrin committed Jun 21, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 _ezjail-admin
View
2 _ezjail-admin
@@ -153,7 +153,7 @@ _ezjail_list_jails () {
local ret=1
local j
# Those names have already been passed through "tr -c '[alnum]' _" by ezjail
- for j in $( cd $jailcfgs && echo * ) ; do
+ for j in $jailcfgs/*(:t) ; do
case $state in
running) [[ -f /var/run/jail_${j}.id ]] && compadd $j && ret=0 ;;
stopped) [[ -f /var/run/jail_${j}.id ]] || compadd $j && ret=0 ;;

0 comments on commit 7d0b941

Please sign in to comment.
Something went wrong with that request. Please try again.