Skip to content

Commit

Permalink
fix: allow run-script in nested compat mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanccn committed Nov 20, 2023
1 parent b70afec commit ce8e4fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ async fn main() -> Result<()> {

let cli = Cli::parse_from(
if env::var_os("NRR_COMPAT_MODE").is_some_and(|v| !v.is_empty())
&& raw_args.get(1) == Some(&"run".to_owned())
&& raw_args
.get(1)
.is_some_and(|v| v == "run" || v == "run-script")
{
let mut processed_args = raw_args.clone();
processed_args.remove(1);
Expand Down

0 comments on commit ce8e4fb

Please sign in to comment.