mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 14:43:52 +02:00
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…
Add table
Reference in a new issue