Revert "ksud: make it buildable without git installed"

This reverts commit 8ed3bd53ac.
This commit is contained in:
tiann
2023-02-24 11:53:04 +08:00
parent 8ed3bd53ac
commit 745f109686
2 changed files with 15 additions and 25 deletions

View File

@@ -223,7 +223,6 @@ pub fn on_boot_completed() -> Result<()> {
let module_img = Path::new(defs::MODULE_IMG);
if module_update_img.exists() {
// this is a update and we successfully booted
std::fs::rename(module_update_img, module_img)?;
if std::fs::rename(module_update_img, module_img).is_err() {
warn!("Failed to rename images, copy it now.",);
std::fs::copy(module_update_img, module_img)