fix: fixed variables formatting in game running command log

This commit is contained in:
Observer KRypt0n_ 2023-03-04 19:18:05 +02:00
parent 2af464536c
commit ca8d64906a
No known key found for this signature in database
GPG key ID: 844DA47BA25FE1E2
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "anime-launcher-sdk"
version = "0.2.4"
version = "0.2.5"
authors = ["Nikita Podvirnyy <suimin.tu.mu.ga.mi@gmail.com>"]
license = "GPL-3.0"
readme = "README.md"

View file

@ -146,7 +146,7 @@ pub fn run() -> anyhow::Result<()> {
let variables = command
.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);
tracing::info!("Running the game with command: {variables} bash -c \"{bash_chain}\"");