summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/copy-figs3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/copy-figs b/bin/copy-figs
index a42fc74..81b41f3 100755
--- a/bin/copy-figs
+++ b/bin/copy-figs
@@ -209,7 +209,8 @@ do
# Copy file if we like it
if [ "${copyIt}" = "yes" ]; then
[ "${VERBOSE}" ] || echo >&2 "Copying file |$fn|"
- cp "${fn}" "${DST}/${rp}"
+ /bin/mkdir -p $(/usr/bin/dirname "${DST}/${rp}")
+ /bin/cp "${fn}" "${DST}/${rp}"
else
[ "${VERBOSE}" ] || echo >&2 "Rejecting file |$fn|"
fi