Skip to content

Commit

Permalink
reduce log output when directory doesnt exist
Browse files Browse the repository at this point in the history
  • Loading branch information
lajosdeme committed Apr 3, 2021
1 parent 8a4fa81 commit c94f68a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions clean.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,7 @@ func Purge() {
size, _ := DirSize(dir)
dirSizes = dirSizes + size

err := CleanDirContents(dir)
if err != nil {
log.Printf("Error cleaning %s", dir)
log.Println(err)
}
CleanDirContents(dir)
}
dirSizes = dirSizes - DeviceSupportLatestVerDirSize()
totalMB := SizeInMB(dirSizes)
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func main() {

//Version
if opts.Version {
fmt.Println("1.0.0")
fmt.Println("1.0.1")
os.Exit(0)
}

Expand Down
Binary file added xcclear-1.0.0-tar.gz
Binary file not shown.

0 comments on commit c94f68a

Please sign in to comment.