Skip to content

Commit

Permalink
Merge pull request #19 from fergusonB/uninstall-systemd-without-su-an…
Browse files Browse the repository at this point in the history
…d-other-args-panics-15

fixed #15
  • Loading branch information
fergusonB authored Apr 14, 2022
2 parents ebcbacc + fa1f7a1 commit f592070
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ fn args_options_execution(charge_level: i32, skip_systemd: bool, uninstall_syste
}
}
if uninstall_systemd {
commands::disable_chargeto_service();
systemd::uninstall_systemd_service_file();
if commands::check_if_service_enabled() {
commands::disable_chargeto_service();
systemd::uninstall_systemd_service_file();
}
}
}

0 comments on commit f592070

Please sign in to comment.