summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. 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)
commit0564fc20ebeae8510b30ef6b338933535fdac0ef (patch)
tree9cc8069b0dd012ed1b8a8ec264e3d23ce4830949 /src
parentf2e613f1ce3283b206e74b7b4bc88cac057d9c35 (diff)
Make sure config destination directory exists.
Diffstat (limited to 'src')
-rw-r--r--src/oh-copyconfig1
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