mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-27 23:51:33 +00:00
Formatted files
This commit is contained in:
@ -1,17 +1,22 @@
|
||||
//! When wasmer self-update is executed, this is what gets executed
|
||||
use std::process::{Command, Stdio};
|
||||
use std::io;
|
||||
use std::process::{Command, Stdio};
|
||||
|
||||
pub fn self_update() {
|
||||
println!("Fetching latest installer");
|
||||
let cmd = Command::new("curl").arg("https://get.wasmer.io").arg("-sSfL")
|
||||
.stdout(Stdio::piped()).spawn().unwrap();
|
||||
let cmd = Command::new("curl")
|
||||
.arg("https://get.wasmer.io")
|
||||
.arg("-sSfL")
|
||||
.stdout(Stdio::piped())
|
||||
.spawn()
|
||||
.unwrap();
|
||||
|
||||
let mut the_process = Command::new("sh")
|
||||
.stdin(cmd.stdout.unwrap())
|
||||
.stdout(Stdio::inherit())
|
||||
.spawn()
|
||||
.ok().expect("Failed to execute.");
|
||||
let mut the_process = Command::new("sh")
|
||||
.stdin(cmd.stdout.unwrap())
|
||||
.stdout(Stdio::inherit())
|
||||
.spawn()
|
||||
.ok()
|
||||
.expect("Failed to execute.");
|
||||
|
||||
the_process.wait();
|
||||
}
|
||||
|
Reference in New Issue
Block a user