forked from ungleich-public/cdist
begin to create first type: file
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
f122acd742
commit
b81b19d126
4 changed files with 13 additions and 0 deletions
0
lib/types/file/mandority_parameters/path
Normal file
0
lib/types/file/mandority_parameters/path
Normal file
0
lib/types/file/mandority_parameters/type
Normal file
0
lib/types/file/mandority_parameters/type
Normal file
13
lib/types/file/manifest
Normal file
13
lib/types/file/manifest
Normal file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
case "$__arg_type" in
|
||||
|
||||
directory)
|
||||
if [ "$__arg_mode" ]; then
|
||||
echo mkdir -m \"$__arg_mode\" \"$__arg_path\"
|
||||
else
|
||||
echo mkdir \"$__arg_path\"
|
||||
fi
|
||||
;;
|
||||
|
||||
esac
|
0
lib/types/file/optional_parameters/mode
Normal file
0
lib/types/file/optional_parameters/mode
Normal file
Loading…
Reference in a new issue