Blame subr/pkg_install_clean.subr

Lucio Andrés Illanes Albornoz 3e5303
#
Lucio Andrés Illanes Albornoz 3e5303
# set +o errexit -o noglob -o nounset is assumed.
Lucio Andrés Illanes Albornoz 3e5303
#
Lucio Andrés Illanes Albornoz 3e5303
Lucio Andrés Illanes Albornoz 3e5303
pkg_install_clean() {
Lucio Andrés Illanes Albornoz 3e5303
	if [ -n "${PKG_DESTDIR:-}" ]; then
Lucio Andrés Illanes Albornoz 3e5303
		rtl_fileop rm "${PKG_DESTDIR}" || return 1;
Lucio Andrés Illanes Albornoz 3e5303
		rtl_fileop mkdir "${PKG_DESTDIR}" || return 1;
Lucio Andrés Illanes Albornoz 3e5303
	fi; return 0;
Lucio Andrés Illanes Albornoz 3e5303
};
Lucio Andrés Illanes Albornoz 3e5303
Lucio Andrés Illanes Albornoz 3e5303
# vim:filetype=sh