From 3dc7cdc5d17cccf2e81540e320f4faa95020767b Mon Sep 17 00:00:00 2001 From: Fernando Ayats Date: Tue, 20 Aug 2024 10:05:00 +0200 Subject: [PATCH] get bypass-root-check from the environment --- src/interface.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interface.rs b/src/interface.rs index ca42a81..53371fd 100644 --- a/src/interface.rs +++ b/src/interface.rs @@ -114,7 +114,7 @@ pub struct OsRebuildArgs { pub extra_args: Vec, /// Bypass the check to call nh as root directly. - #[arg(short = 'R', long)] + #[arg(short = 'R', long, env = "NH_BYPASS_ROOT_CHECK")] pub bypass_root_check: bool, }