mirror of
https://github.com/Jguer/yay.git
synced 2025-11-22 00:12:41 -05:00
fix(clean): Add clean directory warning on fail
This commit is contained in:
parent
ce79d53eb2
commit
ab3c66ab98
1
clean.go
1
clean.go
@ -195,6 +195,7 @@ func cleanUntracked() error {
|
|||||||
dir := filepath.Join(config.BuildDir, file.Name())
|
dir := filepath.Join(config.BuildDir, file.Name())
|
||||||
if isGitRepository(dir) {
|
if isGitRepository(dir) {
|
||||||
if err := show(passToGit(dir, "clean", "-fx")); err != nil {
|
if err := show(passToGit(dir, "clean", "-fx")); err != nil {
|
||||||
|
text.Warnln(gotext.Get("Unable to clean:"), dir)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user