Skip to content

Commit c35174f

Browse files
authored
Remove .git* dirs and manifest.yaml from manifest creation (#10)
1 parent ff9dc91 commit c35174f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/scripts/generate_manifests.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ module use "$yamf_module_path"
1616
module load "$yamf_module_name"
1717

1818
# This command finds all the leaf directories: see https://unix.stackexchange.com/questions/68577/find-directories-that-do-not-contain-subdirectories/203991#203991
19-
dir_without_subdir=$(find "$start_dir" -type d -links 2 ! -empty)
19+
dir_without_subdir=$(find "$start_dir" -type d -links 2 ! -ipath "*.git*" ! -empty)
2020

2121
for dir in $dir_without_subdir; do
2222
echo "Working on $dir:"
2323
# Find all the files that we want to turn into manifests
24-
files=$(find "$dir" -maxdepth 1 -type f -printf '%f ')
24+
files=$(find "$dir" -maxdepth 1 -type f ! -name "manifest.yaml" -printf '%f ')
2525
if [ -n "$files" ]; then
2626
# If there are some files, add them using yamf
2727
cd "$dir" || exit 2

0 commit comments

Comments
 (0)