summaryrefslogtreecommitdiff
path: root/lib/leap_cli/commands
diff options
context:
space:
mode:
Diffstat (limited to 'lib/leap_cli/commands')
-rw-r--r--lib/leap_cli/commands/test.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/leap_cli/commands/test.rb b/lib/leap_cli/commands/test.rb
index 962053d..73207b3 100644
--- a/lib/leap_cli/commands/test.rb
+++ b/lib/leap_cli/commands/test.rb
@@ -18,7 +18,11 @@ module LeapCli; module Commands
ssh.run(test_cmd(options))
end
rescue Capistrano::CommandError => exc
- bail! unless options[:continue]
+ if options[:continue]
+ exit_status(1)
+ else
+ bail!
+ end
end
end
end