summaryrefslogtreecommitdiffhomepage
path: root/subr.pkg/pkg_install_clean.subr
blob: 7a045d73577edac0ad4579f2873bf77764b282e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#
# Copyright (c) 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Lucía Andrea Illanes Albornoz <lucia@luciaillanes.de>
# set +o errexit -o noglob -o nounset is assumed.
#

pkg_install_clean() {
	local _pic_group_name="${1}" _pic_pkg_name="${2}" _pic_restart_at="${3}";

	if [ "${PKG_DESTDIR:+1}" = 1 ]; then
		rtl_fileop rm "${PKG_DESTDIR}" || return 1;
		rtl_fileop mkdir "${PKG_DESTDIR}" || return 1;
	fi;
	return 0;
};

# vim:filetype=sh textwidth=0