some new ideas/comments

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-01-14 12:46:51 +01:00
commit 91f0f41845
2 changed files with 10 additions and 1 deletions

View file

@ -20,6 +20,9 @@
#
# Wrapper script that generates cconfig from arguments
#
# This script will be called everytime the manifest decides to create
# a new type
#
. cdist-config
@ -40,6 +43,7 @@ ddir="${cdist_confdir}/${tid}"
if [ -e "${ddir}" ]; then
# FIXME: add source! $cdist_config_base/source
# FIXME: force $source information to be present from outside!
__cdist_usage "${tid} already exists"
fi
@ -52,6 +56,9 @@ while [ $# -gt 0 ]; do
opt_file="$(echo $opt | sed 's/^--//')"
# FIXME: check for options supported by type - or leave it to the type?
# I guess do it here, so we also check whether
[ $# -ge 1 ] || __cdist_usage "Missing value for $opt"
value="$1"; shift