From 1327286abd5571f88a9b68f3d9b743b97caca11c Mon Sep 17 00:00:00 2001 From: Gal Schlezinger Date: Thu, 1 Apr 2021 12:28:12 +0300 Subject: [PATCH] Adding FNM_ARCH as an exported env var from fnm env (#421) Continuation of #417 so it will work with `--use-on-cd` as well --- src/commands/env.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/commands/env.rs b/src/commands/env.rs index c3948a7..353619b 100644 --- a/src/commands/env.rs +++ b/src/commands/env.rs @@ -75,6 +75,10 @@ impl Command for Env { "{}", shell.set_env_var("FNM_NODE_DIST_MIRROR", config.node_dist_mirror.as_str()) ); + println!( + "{}", + shell.set_env_var("FNM_ARCH", &config.arch.to_string()) + ); if self.use_on_cd { println!("{}", shell.use_on_cd(&config)); }