From d43b34011a52eab5d9dcdc2301b09ecc09e02c76 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Fri, 28 Nov 2003 21:12:25 +0000 Subject: *** empty log message *** --- move/move.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'move/move.pm') diff --git a/move/move.pm b/move/move.pm index a31638c68..d959626fe 100644 --- a/move/move.pm +++ b/move/move.pm @@ -37,7 +37,10 @@ sub handle_etcfiles { m|^# (\S+)| and $mode = $1; m|^/| && member($mode, @allowed_modes) and do { $mode eq 'READ' && !-e $_ and symlinkf_short("/image$_", $_); - $mode eq 'OVERWRITE' and system("cp /image$_ $_"); #- need copy contents + if ($mode eq 'OVERWRITE') { + mkdir_p(dirname($_)); + system("cp /image$_ $_"); #- need copy contents + } $mode eq 'DIR' and mkdir_p $_; } } -- cgit v1.2.1