diff options
Diffstat (limited to 'xtask/src/not_bash.rs')
-rw-r--r-- | xtask/src/not_bash.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xtask/src/not_bash.rs b/xtask/src/not_bash.rs index 2d45e5dff..ef1699934 100644 --- a/xtask/src/not_bash.rs +++ b/xtask/src/not_bash.rs | |||
@@ -94,6 +94,10 @@ pub fn run_process(cmd: String, echo: bool) -> Result<String> { | |||
94 | run_process_inner(&cmd, echo).with_context(|| format!("process `{}` failed", cmd)) | 94 | run_process_inner(&cmd, echo).with_context(|| format!("process `{}` failed", cmd)) |
95 | } | 95 | } |
96 | 96 | ||
97 | pub fn date_iso() -> Result<String> { | ||
98 | run!("date --iso --utc") | ||
99 | } | ||
100 | |||
97 | fn run_process_inner(cmd: &str, echo: bool) -> Result<String> { | 101 | fn run_process_inner(cmd: &str, echo: bool) -> Result<String> { |
98 | let mut args = shelx(cmd); | 102 | let mut args = shelx(cmd); |
99 | let binary = args.remove(0); | 103 | let binary = args.remove(0); |