From e202826340c3293d4cb2a8900cbbd628bc1b9289 Mon Sep 17 00:00:00 2001 From: elijah Date: Wed, 26 Jun 2013 12:26:46 -0700 Subject: print a nice 'ok' when a host is alive. --- lib/leap_cli/remote/leap_plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/leap_cli/remote/leap_plugin.rb') diff --git a/lib/leap_cli/remote/leap_plugin.rb b/lib/leap_cli/remote/leap_plugin.rb index 8cc96d4..f5bf490 100644 --- a/lib/leap_cli/remote/leap_plugin.rb +++ b/lib/leap_cli/remote/leap_plugin.rb @@ -25,7 +25,7 @@ module LeapCli; module Remote; module LeapPlugin begin test_initialized_file = "test -f #{INITIALIZED_FILE}" check_required_packages = "! dpkg-query -W --showformat='${Status}\n' #{required_packages} 2>&1 | grep -q -E '(deinstall|no packages)'" - run "#{test_initialized_file} && #{check_required_packages}" + run "#{test_initialized_file} && #{check_required_packages} && echo ok" rescue Capistrano::CommandError => exc LeapCli::Util.bail! do exc.hosts.each do |host| -- cgit v1.2.3