fix: fixed variables formatting in game running command log
This commit is contained in:
parent
2af464536c
commit
ca8d64906a
2 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "anime-launcher-sdk"
|
name = "anime-launcher-sdk"
|
||||||
version = "0.2.4"
|
version = "0.2.5"
|
||||||
authors = ["Nikita Podvirnyy <suimin.tu.mu.ga.mi@gmail.com>"]
|
authors = ["Nikita Podvirnyy <suimin.tu.mu.ga.mi@gmail.com>"]
|
||||||
license = "GPL-3.0"
|
license = "GPL-3.0"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|
|
@ -146,7 +146,7 @@ pub fn run() -> anyhow::Result<()> {
|
||||||
|
|
||||||
let variables = command
|
let variables = command
|
||||||
.get_envs()
|
.get_envs()
|
||||||
.map(|(key, value)| format!("{:?}=\"{:?}\"", key.to_string_lossy(), value.unwrap_or_default().to_string_lossy()))
|
.map(|(key, value)| format!("{}=\"{}\"", key.to_string_lossy(), value.unwrap_or_default().to_string_lossy()))
|
||||||
.fold(String::new(), |acc, env| acc + " " + &env);
|
.fold(String::new(), |acc, env| acc + " " + &env);
|
||||||
|
|
||||||
tracing::info!("Running the game with command: {variables} bash -c \"{bash_chain}\"");
|
tracing::info!("Running the game with command: {variables} bash -c \"{bash_chain}\"");
|
||||||
|
|
Loading…
Reference in a new issue