Skip to content
Snippets Groups Projects
Commit 023ed22a authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- added check for cache-Dir

parent 6c22debf
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,11 @@ BEGIN {
}
END {
YAML::DumpFile($cache_path, %cache);
if ($cache_path->parent->is_dir && !$cache_path->parent->parent->is_rootdir && $cache_path->touch()) {
YAML::DumpFile($cache_path, %cache)
} else {
warn "The $cache_path could not be written, because dir ".$cache_path->parent()." is not writeable";
}
}
1;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment