From 5bf71ab599d09bad52fb36dc7ba52247b40dc7de Mon Sep 17 00:00:00 2001 From: Tomas M Date: Sat, 20 Oct 2012 22:46:10 -0500 Subject: [PATCH] fix rootcopy --- livekitlib | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/livekitlib b/livekitlib index 3e50b13..9961a9e 100644 --- a/livekitlib +++ b/livekitlib @@ -372,7 +372,9 @@ persistent_changes() # $2 = union directory copy_rootcopy_content() { - if [ "$(find "$1/rootcopy/" -maxdepth 1 2>/dev/null)" != "" ]; then + debug_log "copy_rootcopy_content" "$*" + + if [ "$(ls -1 "$1/rootcopy/" 2>/dev/null)" != "" ]; then echo_green_star echo "Copying content of rootcopy directory..." cp -a "$1/rootcopy/*" "$2"