diff options
Diffstat (limited to 'subr')
-rw-r--r-- | subr/ex_setup_subdirs.subr | 8 |
1 files changed, 3 insertions, 5 deletions
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 "" \ |