corrected some debug codesnips

remotes/origin/feature_files_export
Daniel Heule 11 years ago
parent 8d80e52de9
commit 0198b99eb5
  1. 4
      cdist/conf/type/__key_value/explorer/state
  2. 5
      cdist/conf/type/__key_value/gencode-remote
  3. 1
      cdist/conf/type/__key_value/parameter/default/comment_line

@ -48,6 +48,10 @@ BEGIN {
if(i == 1) {
delval = substr($0,length(key)+1)
delpos = index(delval,delimiter)
if(delpos == 0) {
# in this case, the delimiter was not found
next
}
if(delpos > 1) {
spaces = substr(delval,1,delpos-1)
sub(/[ \t]*/,"",spaces)

@ -53,7 +53,9 @@ case "$state_should" in
*)
echo "Unknown explorer state: $state_is" >&2
exit 1
;;
esac
;;
present)
case "$state_is" in
absent)
@ -68,11 +70,13 @@ case "$state_should" in
*)
echo "Unknown explorer state: $state_is" >&2
exit 1
;;
esac
;;
*)
echo "Unknown state: $state_should" >&2
exit 1
;;
esac
cat <<__CDIST_HEREDOC_END_HERE_MARKER
@ -184,5 +188,4 @@ END {
}
AWK_EOF
mv -f "\$tmpfile" "$file"
exit 1
__CDIST_HEREDOC_END_HERE_MARKER

Loading…
Cancel
Save