Browse Source

cli: Add quotes to Command args (#1046)

Kirill Fomichev 3 years ago
parent
commit
92c6d4c3f7
1 changed files with 3 additions and 3 deletions
  1. 3 3
      cli/src/lib.rs

+ 3 - 3
cli/src/lib.rs

@@ -1899,10 +1899,10 @@ fn deploy(cfg_override: &ConfigOverride, program_str: Option<String>) -> Result<
                 .arg("--url")
                 .arg(&url)
                 .arg("--keypair")
-                .arg(&keypair)
+                .arg(&format!("\"{}\"", keypair))
                 .arg("--program-id")
-                .arg(file.path().display().to_string())
-                .arg(&binary_path)
+                .arg(&format!("\"{}\"", file.path().display()))
+                .arg(&format!("\"{}\"", binary_path))
                 .stdout(Stdio::inherit())
                 .stderr(Stdio::inherit())
                 .output()