fix reinstall

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2023-03-02 21:40:03 +08:00
parent 4f8dd59c7c
commit 896da1b153
2 changed files with 4 additions and 4 deletions

View File

@@ -1235,8 +1235,8 @@ fn get_uninstall(kill_self: bool) -> String {
)
}
pub fn uninstall_me() -> ResultType<()> {
run_cmds(get_uninstall(true), true, "uninstall")
pub fn uninstall_me(kill_self: bool) -> ResultType<()> {
run_cmds(get_uninstall(kill_self), true, "uninstall")
}
fn write_cmds(cmds: String, ext: &str, tip: &str) -> ResultType<std::path::PathBuf> {