diff options
-rw-r--r-- | core/rootfs/rootfs-stage31/data/inc/functions | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/rootfs/rootfs-stage31/data/inc/functions b/core/rootfs/rootfs-stage31/data/inc/functions index 6edbeffb..a4ad56db 100644 --- a/core/rootfs/rootfs-stage31/data/inc/functions +++ b/core/rootfs/rootfs-stage31/data/inc/functions @@ -93,6 +93,8 @@ bench_event() { tarcopy() { [ -d "$1" -a -d "$2" ] || return 1 cd "$1" - tar -cp * | tar -xp -C "$2" + find . \! -type d > /tmp/tctmp + tar -c -p -T /tmp/tctmp | tar -xp -C "$2" + rm -f -- /tmp/tctmp cd - &>/dev/null } |