Lines 60-65
gentoo_path_check() {
Link Here
|
60 |
|
60 |
|
61 |
${shopt_save} |
61 |
${shopt_save} |
62 |
|
62 |
|
|
|
63 |
if [[ ${#bad_paths[@]} -gt 0 && ${QA_INSTALL_PATHS} && |
64 |
${QA_STRICT_INSTALL_PATHS-unset} == unset ]]; then |
65 |
local filtered_paths=() |
66 |
local grep_args=() |
67 |
local qa_install_paths |
68 |
if [[ $(declare -p QA_INSTALL_PATHS) == "declare -a "* ]]; then |
69 |
qa_install_paths=( "${QA_INSTALL_PATHS[@]}" ) |
70 |
else |
71 |
set -f |
72 |
qa_install_paths=( ${QA_INSTALL_PATHS} ) |
73 |
set +f |
74 |
fi |
75 |
for x in "${qa_install_paths[@]}"; do |
76 |
grep_args+=( -e "^/${x#/}\$" ) |
77 |
done |
78 |
while read -r -d ''; do |
79 |
[[ ${REPLY} ]] && filtered_paths+=( "${REPLY}" ) |
80 |
done < <(printf -- '%s\0' "${bad_paths[@]}" | grep -zv "${grep_args[@]}") |
81 |
bad_paths=( "${filtered_paths[@]}" ) |
82 |
fi |
83 |
|
63 |
# report |
84 |
# report |
64 |
# ------ |
85 |
# ------ |
65 |
if [[ -n ${bad_paths[@]} ]]; then |
86 |
if [[ -n ${bad_paths[@]} ]]; then |
66 |
- |
|
|