1
0
mirror of synced 2026-04-16 07:56:15 +00:00

2006-01-11 01:06:56 by steve

Don't give error if "xm create [TAB]" cannot find any *.cfg files.
This commit is contained in:
steve
2006-01-11 01:06:56 +00:00
parent 352b18e266
commit e99c2d62c2

View File

@@ -7,7 +7,7 @@
# --
# http://www.steve.org.uk
#
# $Id: xm,v 1.5 2005-12-24 05:38:09 steve Exp $
# $Id: xm,v 1.6 2006-01-11 01:06:56 steve Exp $
#
@@ -43,7 +43,7 @@ _xm()
return 0
;;
create)
local names=$(for x in `ls -1 /etc/xen/*.cfg`; do echo ${x/\/etc\/xen\//} ; done )
local names=$(for x in `ls -1 /etc/xen/*.cfg 2>/dev/null`; do echo ${x/\/etc\/xen\//} ; done )
COMPREPLY=( $(compgen -W "${names}" -- ${cur}) )
return 0
;;