xbps-src: remove_pkg: exit early if destdir does not exist.
This commit is contained in:
parent
8854ff0a60
commit
7e9f329643
1 changed files with 2 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue