summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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