summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/doins4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/doins b/bin/doins
index a4f5ee22f..945938c8b 100755
--- a/bin/doins
+++ b/bin/doins
@@ -28,14 +28,16 @@ fi
[[ ! -d ${D}${INSDESTTREE} ]] && dodir "${INSDESTTREE}"
_doins() {
- local mysrc="$1" mydir="$2"
+ local mysrc="$1" mydir="$2" cleanup=""
if [ -L "$mysrc" ] ; then
cp "$mysrc" "${T}"
mysrc="${T}/${mysrc##*/}"
+ cleanup=${mysrc}
fi
install ${INSOPTIONS} "${mysrc}" "${D}${INSDESTTREE}/${mydir}"
+ [[ -n ${cleanup} ]] && rm -f "${cleanup}"
}
_xdoins() {