xbps-src: remove_pkg: exit early if destdir does not exist.
This commit is contained in:
@@ -133,6 +133,8 @@ remove_pkg() {
|
|||||||
_destdir="$XBPS_DESTDIR"
|
_destdir="$XBPS_DESTDIR"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
[ ! -d ${_destdir} ] && return
|
||||||
|
|
||||||
for f in ${sourcepkg} ${subpackages}; do
|
for f in ${sourcepkg} ${subpackages}; do
|
||||||
if [ -d "${_destdir}/${f}-${version}" ]; then
|
if [ -d "${_destdir}/${f}-${version}" ]; then
|
||||||
msg_normal "$f: removing files from destdir...\n"
|
msg_normal "$f: removing files from destdir...\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user