diff options
author | P. J. McDermott <pjm@nac.net> | 2012-02-03 04:34:41 (EST) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-02-03 04:34:41 (EST) |
commit | 0564fc20ebeae8510b30ef6b338933535fdac0ef (patch) | |
tree | 9cc8069b0dd012ed1b8a8ec264e3d23ce4830949 /src/oh-copyconfig | |
parent | f2e613f1ce3283b206e74b7b4bc88cac057d9c35 (diff) |
Make sure config destination directory exists.
Diffstat (limited to 'src/oh-copyconfig')
-rw-r--r-- | src/oh-copyconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/oh-copyconfig b/src/oh-copyconfig index e880392..4bd3871 100644 --- a/src/oh-copyconfig +++ b/src/oh-copyconfig @@ -75,5 +75,6 @@ while read -r type src dest; do fi # Copy the config file(s). printf 'oh-copyconfig: Copying "%s" to "%s"...\n' "${src}" "${dest}" + mkdir -p "$(dirname "${full_dest}")" cp -p "${full_src}" "${full_dest}" || error "Cannot copy \"${src}\"" done < ../config |