diff --git a/cpstage4.sh b/cpstage4.sh index ffea9c4..4236ea3 100755 --- a/cpstage4.sh +++ b/cpstage4.sh @@ -130,7 +130,7 @@ then if ((HAS_PORTAGEQ)) then PORTAGEQ_REPOS=$(portageq get_repos /) - for i in ${PORTAGEQ_REPOS[@]}; do + for i in ${PORTAGEQ_REPOS}; do EXCLUDES+=("--exclude=$(portageq get_repo_path / ${i})/*") done EXCLUDES+=("--exclude=$(portageq distdir)/*") diff --git a/mkstage4.sh b/mkstage4.sh index 6af58c1..5c85a5f 100755 --- a/mkstage4.sh +++ b/mkstage4.sh @@ -213,7 +213,7 @@ then if ((HAS_PORTAGEQ)) then PORTAGEQ_REPOS=$(portageq get_repos /) - for i in ${PORTAGEQ_REPOS[@]}; do + for i in ${PORTAGEQ_REPOS}; do EXCLUDES+=("--exclude=$(portageq get_repo_path / ${i})/*") done EXCLUDES+=("--exclude=$(portageq distdir)/*")