From 9cec6722e1b28380f098f9d4639178f967f171ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Wed, 29 Nov 2017 14:47:58 +0000 Subject: subr/ex_setup_subdirs.subr, vars/env.vars: fix -c (clean ${PREFIX}.) --- subr/ex_setup_subdirs.subr | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'subr') diff --git a/subr/ex_setup_subdirs.subr b/subr/ex_setup_subdirs.subr index 5d74e15c..e6f0fbf9 100644 --- a/subr/ex_setup_subdirs.subr +++ b/subr/ex_setup_subdirs.subr @@ -3,13 +3,11 @@ # ex_setup_subdirs() { - local __; + local _pname; if [ ${ARG_CLEAN:-0} -eq 1 ]; then ex_log_msg info "-c specified, cleaning prefix..."; - for __ in ${CLEAR_PREFIX_DIRS}; do - if [ -e ${PREFIX}/${__} ]; then - build_rm ${PREFIX}/${__}; - fi; + for _pname in ${CLEAR_PREFIX_PATHS}; do + ex_build_fileop rm ${PREFIX}/${_pname}; done; fi; pkg_install_files "" \ -- cgit v1.2.3