1
1
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-10 21:01:02 +02:00

added cleanup function to remove temporary file

This commit is contained in:
Prince 2024-09-03 18:56:46 -07:00
parent 95de3790d7
commit 0d8e4e10d6
4 changed files with 21 additions and 2 deletions

View file

@ -11,6 +11,7 @@ import (
"syscall"
"github.com/schollz/croc/v10/src/cli"
"github.com/schollz/croc/v10/src/utils"
)
func main() {
@ -47,6 +48,7 @@ func main() {
// Perform any necessary cleanup here
log.Println("Performing cleanup...")
utils.CleanupTempData()
// Exit the program gracefully
os.Exit(0)