ksud: use the same variable type in scripts (#26)

When executing module install scripts, KSU is set to "true"; when executing module post-fs-data scripts, KSU is set to "1". This may cause confusions so use the same value instead.
This commit is contained in:
残页
2023-01-06 11:49:13 +08:00
committed by GitHub
parent bc9daf1583
commit 7942f4c495

View File

@@ -148,7 +148,7 @@ pub fn exec_post_fs_data() -> Result<()> {
Command::new("/system/bin/sh")
.arg(&post_fs_data)
.current_dir(path)
.env("KSU", "1")
.env("KSU", "true")
.status()
.with_context(|| format!("Failed to exec {}", post_fs_data.display()))?;
}