File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -142,8 +142,19 @@ jobs:
142142 path : modules/openapi-generator-cli/target
143143 - name : Delete samples that are entirely generated
144144 run : |
145- # Delete all directories within generichost that don't contain "Manual" in the path
146- find samples/client/petstore/csharp/generichost -type d -not -path "*Manual*" -exec rm -rf {} +
145+ # List all directories in generichost, filter out Manual directories, and remove the rest
146+ cd samples/client/petstore/csharp/generichost
147+ for version_dir in */ ; do
148+ if [ -d "$version_dir" ]; then
149+ cd "$version_dir"
150+ for dir in */ ; do
151+ if [ -d "$dir" ] && [[ ! "$dir" =~ Manual ]]; then
152+ rm -rf "$dir"
153+ fi
154+ done
155+ cd ..
156+ fi
157+ done
147158 - name : Generate samples
148159 run : |
149160 bash bin/generate-samples.sh
You can’t perform that action at this time.
0 commit comments