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:
parent
95de3790d7
commit
0d8e4e10d6
4 changed files with 21 additions and 2 deletions
2
main.go
2
main.go
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue