From acd878fc2984801210ea005fa9a51e04aaa270ac Mon Sep 17 00:00:00 2001 From: Horea Christian Date: Tue, 23 May 2023 19:34:51 -0400 Subject: [PATCH] Splitting operation to satisfy shellcheck --- cpstage4.sh | 3 ++- mkstage4.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cpstage4.sh b/cpstage4.sh index c1980fa..c5591cb 100755 --- a/cpstage4.sh +++ b/cpstage4.sh @@ -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 diff --git a/mkstage4.sh b/mkstage4.sh index 5348ccf..c01b9c2 100755 --- a/mkstage4.sh +++ b/mkstage4.sh @@ -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