mirror of
https://github.com/house-of-vanity/rexec.git
synced 2026-08-13 17:43:47 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
85e69db07c |
+10
-10
@@ -223,16 +223,16 @@ fn main() {
|
|||||||
// Ask for confirmation
|
// Ask for confirmation
|
||||||
if config.hosts.len() != 0
|
if config.hosts.len() != 0
|
||||||
&& (args.noconfirm == true
|
&& (args.noconfirm == true
|
||||||
|| match Question::new(&*format!(
|
|| match Question::new(&*format!(
|
||||||
"Continue on following {} servers?",
|
"Continue on following {} servers?",
|
||||||
&config.hosts.len()
|
&config.hosts.len()
|
||||||
))
|
))
|
||||||
.confirm()
|
.confirm()
|
||||||
{
|
{
|
||||||
Answer::YES => true,
|
Answer::YES => true,
|
||||||
Answer::NO => false,
|
Answer::NO => false,
|
||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
})
|
})
|
||||||
{
|
{
|
||||||
info!("\n");
|
info!("\n");
|
||||||
info!("Run command on {} servers.", &config.hosts.len());
|
info!("Run command on {} servers.", &config.hosts.len());
|
||||||
|
|||||||
Reference in New Issue
Block a user