Merge pull request #4618 from zhzhuang-zju/import

Optimize the display of the hack/verify-import-aliases.sh
This commit is contained in:
karmada-bot 2024-02-17 11:28:05 +08:00 committed by GitHub
commit f935586e7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -260,7 +260,7 @@ func main() {
a := newAnalyzer() a := newAnalyzer()
for _, dir := range c.dirs { for _, dir := range c.dirs {
if isTerminal { if isTerminal {
fmt.Printf("\r\033[0m %-80s", dir) fmt.Printf("\r\033[0m %-80s\n", dir)
} }
a.collect(dir) a.collect(dir)
} }

View File

@ -39,3 +39,4 @@ if [[ $ret -ne 0 ]]; then
echo "!!! Please see hack/.import-aliases for the preferred aliases for imports." >&2 echo "!!! Please see hack/.import-aliases for the preferred aliases for imports." >&2
exit 1 exit 1
fi fi
echo "Passed import-aliases verification."