diff options
author | Bertrand Jacquin <bertrand@jacquin.bzh> | 2018-03-05 23:59:56 +0000 |
---|---|---|
committer | Bertrand Jacquin <bertrand@jacquin.bzh> | 2018-03-18 14:25:36 +0000 |
commit | 4e4dc135324f14cd3c4420501fc8df066950393a (patch) | |
tree | 5ed34d0aa36637872a59109118fadc26e14bec50 /profiles/common | |
parent | sys-kernel/longterm-sources: Version bump (diff) | |
download | portage-4e4dc135324f14cd3c4420501fc8df066950393a.tar.xz |
profiles/common: Use appropriate variable name
Diffstat (limited to 'profiles/common')
-rw-r--r-- | profiles/common/profile.bashrc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/profiles/common/profile.bashrc b/profiles/common/profile.bashrc index 2e722013..c1861bc7 100644 --- a/profiles/common/profile.bashrc +++ b/profiles/common/profile.bashrc @@ -45,7 +45,7 @@ function __restore_bash_options () { } function __drop-nls-man-pages () { - local -a _FILES=( + local -a _DIRS=( /usr/share/man /usr/share/postgresql-*/man /usr/share/binutils-data/*/*/man @@ -59,10 +59,10 @@ function __drop-nls-man-pages () { /opt/icedtea-bin*/man ) - local _file - for _file in ${_FILES[@]} ; do + local _dir + for _dir in ${_DIRS[@]} ; do find "${_ed}" \ - -path "${_ed}${_file}" | + -path "${_ed}${_dir}" | sort | while read ; do if has noman ${FEATURES} ; then @@ -111,7 +111,7 @@ function __drop-doc () { return 0 fi - local -a _FILES=( + local -a _DIRS=( /opt/ekopath/docs /usr/lib64/python*/site-packages/enum/doc /usr/lib64/python*/site-packages/numpy/doc @@ -127,10 +127,10 @@ function __drop-doc () { /usr/share/vim/vimfiles/doc ) - local _file - for _file in ${_FILES[@]} ; do + local _dir + for _dir in ${_DIRS[@]} ; do find "${_ed}" \ - -path "${_ed}${_file}" | + -path "${_ed}${_dir}" | sort | while read ; do einfo "Removing ${REPLY#${_ed}}" |