Skip to content

Commit

Permalink
fix boot restore
Browse files Browse the repository at this point in the history
  • Loading branch information
5ec1cff authored and backslashxx committed Feb 3, 2025
1 parent 0ce8d36 commit 70e0f5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userspace/ksud/src/boot_patch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ pub fn restore(
let sha = std::fs::read(workding_dir.path().join("orig.ksu"))?;
let sha = String::from_utf8(sha)?;
let sha = sha.trim();
let backup_path = format!("{KSU_BACKUP_DIR}/{KSU_BACKUP_FILE_PREFIX}{sha}");
let backup_path = format!("{KSU_BACKUP_DIR}/{sha}");
if Path::new(&backup_path).is_file() {
new_boot = Some(PathBuf::from(backup_path));
from_backup = true;
Expand Down

0 comments on commit 70e0f5f

Please sign in to comment.