fix: 仅处理kubecm目录,跳过其他目录

This commit is contained in:
hailaz
2025-08-22 18:15:33 +08:00
parent 3d42eaaaad
commit fad2bcd160

View File

@ -35,6 +35,12 @@ for file in `find . -name go.mod`; do
dirpath=$(dirname $file)
echo "Processing: $dirpath"
# Only process kubecm directory, skip others
if [ "kubecm" != $(basename $dirpath) ]; then
echo " Skipping: not kubecm directory"
continue
fi
cd $dirpath
# Read Go version requirement from go.mod