Splitting operation to satisfy shellcheck

This commit is contained in:
Horea Christian 2023-05-23 19:34:51 -04:00
parent fc7c2fe300
commit acd878fc29
2 changed files with 4 additions and 2 deletions

View file

@ -130,7 +130,8 @@ then
then
PORTAGEQ_REPOS=$(portageq get_repos /)
for i in ${PORTAGEQ_REPOS}; do
EXCLUDES+=("--exclude=$(portageq get_repo_path / $i)/*")
REPO_PATH=$(portageq get_repo_path / "${i}")
EXCLUDES+=("--exclude=${REPO_PATH}/*")
done
EXCLUDES+=("--exclude=$(portageq distdir)/*")
else

View file

@ -214,7 +214,8 @@ then
then
PORTAGEQ_REPOS=$(portageq get_repos /)
for i in ${PORTAGEQ_REPOS}; do
EXCLUDES+=("--exclude="$(portageq get_repo_path / "${i}")/*)
REPO_PATH=$(portageq get_repo_path / "${i}")
EXCLUDES+=("--exclude=${REPO_PATH}/*")
done
EXCLUDES+=("--exclude=$(portageq distdir)/*")
else