fix rootcopy

pull/5/head
Tomas M 2012-10-20 22:46:10 -05:00
parent 2845077d79
commit 5bf71ab599
1 changed files with 3 additions and 1 deletions

View File

@ -372,7 +372,9 @@ persistent_changes()
# $2 = union directory # $2 = union directory
copy_rootcopy_content() 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_green_star
echo "Copying content of rootcopy directory..." echo "Copying content of rootcopy directory..."
cp -a "$1/rootcopy/*" "$2" cp -a "$1/rootcopy/*" "$2"