mkdiropt needs to be unquoted => empty if not existing
Otherwise this happens:
root@lilly ~ # cat
/var/lib/cdist/object/__directory/vm/.cdist/code-remote
rm -f "/vm"
mkdir "" "/vm"
which results into
mkdir: cannot create directory `': No such file or directory
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
This commit is contained in:
parent
e58a467327
commit
a6e2cf853e
2 changed files with 2 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ case "$state_should" in
|
|||
set_attributes=1
|
||||
cat << DONE
|
||||
rm -f "$destination"
|
||||
mkdir "$mkdiropt" "$destination"
|
||||
mkdir $mkdiropt "$destination"
|
||||
DONE
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue