Shortcomings fixes in trinity-meta-2_src_delete function

Signed-off-by: ormorph <roma251078@mail.ru>
pull/210/head
ormorph 4 years ago committed by Slávek Banko
parent ae9a3933d1
commit ed21079cdf

@ -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..."

Loading…
Cancel
Save