From 7942f4c4953f206aa42d456e173bc97e8e16da02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AE=8B=E9=A1=B5?= <31466456+canyie@users.noreply.github.com> Date: Fri, 6 Jan 2023 11:49:13 +0800 Subject: [PATCH] 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. --- userspace/ksud/src/module.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/ksud/src/module.rs b/userspace/ksud/src/module.rs index fc2c025c..12fe4290 100644 --- a/userspace/ksud/src/module.rs +++ b/userspace/ksud/src/module.rs @@ -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()))?; }