BUGFIX: do not fail, if cache/ is missing
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
0a3a434269
commit
b0391ac0c9
1 changed files with 4 additions and 2 deletions
|
@ -27,10 +27,12 @@
|
|||
set -u
|
||||
|
||||
__cdist_target_host="$1"; shift
|
||||
__cdist_ddir="$(__cdist_host_cache_dir "$__cdist_target_host")"
|
||||
|
||||
# Create base to move into
|
||||
mkdir -p "$(__cdist_cache_dir)"
|
||||
mkdir -p "${__cdist_local_base_cache_dir}"
|
||||
|
||||
# Now determine absolute path
|
||||
__cdist_ddir="$(__cdist_host_cache_dir "$__cdist_target_host")"
|
||||
|
||||
__cdist_echo info "Saving cache to $__cdist_ddir "
|
||||
rm -rf "$__cdist_ddir"
|
||||
|
|
Loading…
Reference in a new issue