We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 481a942 commit 5a7958dCopy full SHA for 5a7958d
src/steps/generic.rs
@@ -226,6 +226,13 @@ pub fn run_apm(ctx: &ExecutionContext) -> Result<()> {
226
pub fn run_aqua(ctx: &ExecutionContext) -> Result<()> {
227
let aqua = require("aqua")?;
228
229
+ // Check if `aqua --help` mentions "aqua". JetBrains aqua does not, aqua CLI does.
230
+ let output = ctx.run_type().execute(&aqua).arg("--help").output_checked()?;
231
+
232
+ if !String::from_utf8(output.stdout)?.contains("aqua") {
233
+ return Err(SkipStep("Command aqua probably points to JetBrains Aqua".to_string()).into());
234
+ }
235
236
print_separator("Aqua");
237
if ctx.run_type().dry() {
238
println!("{}", t!("Updating aqua ..."));
0 commit comments