mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 06:25:13 +02:00
Implement atexit.rmtree
This commit is contained in:
@@ -44,6 +44,11 @@ func main() (rc int, err error) {
|
||||
fmt.Fprintln(os.Stderr, "Failed to remove:", rest, "with error:", err)
|
||||
rc = 1
|
||||
}
|
||||
case "rmtree":
|
||||
if err := os.RemoveAll(rest); err != nil {
|
||||
fmt.Fprintln(os.Stderr, "Failed to remove:", rest, "with error:", err)
|
||||
rc = 1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user