hooks/post-install/remove-libtool: make sure that PKGDESTDIR exists.

This commit is contained in:
Juan RP 2014-04-02 12:06:27 +02:00
parent dfcc7e5da5
commit 8fcb0e644a

View file

@ -1,7 +1,7 @@
# This hook removes libtool archives (.la) unless $keep_libtool_archives is set. # This hook removes libtool archives (.la) unless $keep_libtool_archives is set.
hook() { hook() {
if [ -z "$keep_libtool_archives" ]; then if [ -z "$keep_libtool_archives" -a -d "${PKGDESTDIR}" ]; then
find ${PKGDESTDIR} -type f -name *.la -delete find ${PKGDESTDIR} -type f -name *.la -delete
fi fi
} }