xbps-src: remove_pkg: exit early if destdir does not exist.

This commit is contained in:
Juan RP 2014-08-21 12:16:53 +02:00
parent 8854ff0a60
commit 7e9f329643

View file

@ -133,6 +133,8 @@ remove_pkg() {
_destdir="$XBPS_DESTDIR"
fi
[ ! -d ${_destdir} ] && return
for f in ${sourcepkg} ${subpackages}; do
if [ -d "${_destdir}/${f}-${version}" ]; then
msg_normal "$f: removing files from destdir...\n"