expand definition of sane to _

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2010-12-01 20:34:41 +01:00
parent 1944110b42
commit a78eb81951
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ echo "I am $__cdist_myname and have been called with $@"
id="$1"; shift
# FIXME: find a better definiton of sane (i.e. everything that is a valid filename)
echo "$id" | grep -q '^[A-Za-z0-9]*$' || __cdist_usage "Provide sane id, please"
echo "$id" | grep -q '^[A-Za-z0-9_]*$' || __cdist_usage "Provide sane id, please"
echo mkdir -p "${cdist_confdir}/${__cdist_myname}/${id}"