diff options
-rw-r--r-- | eclass/trinity-meta-2.eclass | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/eclass/trinity-meta-2.eclass b/eclass/trinity-meta-2.eclass index 13997a20..35bf50c3 100644 --- a/eclass/trinity-meta-2.eclass +++ b/eclass/trinity-meta-2.eclass @@ -274,10 +274,14 @@ trinity-meta-2_src_delete() { done mkdir -p ${dir}/${newdir} || die - cp -af ${x} ${dir}/${newdir} || die + if [[ -f "${x}" ]] || [[ -d "${x}" ]] ; then + cp -af ${x} ${dir}/${newdir}/ || die + fi unset newdir else - cp -af ${x} ${dir}/ || die + if [[ -f "${x}" ]] || [[ -d "${x}" ]] ; then + cp -af ${x} ${dir}/ || die + fi fi done einfo "Delete directories..." |