summaryrefslogtreecommitdiffhomepage
path: root/subr/pkg_install_clean.subr
blob: 3d99f321e915ec2deb957eef98a38227c4aa3004 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#
# set +o errexit -o noglob -o nounset is assumed.
#

pkg_install_clean() {
	if [ -n "${PKG_DESTDIR:-}" ]; then
		rtl_fileop rm "${PKG_DESTDIR}" || return 1;
		rtl_fileop mkdir "${PKG_DESTDIR}" || return 1;
	fi; return 0;
};

# vim:filetype=sh