From db354600981841ae3e2d949b5af3a2af24e218c6 Mon Sep 17 00:00:00 2001 From: Jordan Dubrick Date: Fri, 2 Feb 2024 14:48:21 -0500 Subject: [PATCH] filter out dir change to non-dir items Signed-off-by: Jordan Dubrick --- build-tools/build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build-tools/build.sh b/build-tools/build.sh index d52d5c96..50a0eb1f 100755 --- a/build-tools/build.sh +++ b/build-tools/build.sh @@ -70,8 +70,8 @@ build_registry() { cd "$OLDPWD" # Generate the tar archive - for stackDir in $outputFolder/stacks/* - do + for stackDir in $outputFolder/stacks/*; do + if [[ -d "${stackDir}" ]]; then cd $stackDir if [[ -f "stack.yaml" ]]; then for versionDir in $stackDir/* @@ -85,6 +85,7 @@ build_registry() { tar_files_and_cleanup fi cd "$OLDPWD" + fi done cd "$buildToolsDir"