diff options
author | elijah <elijah@riseup.net> | 2013-06-26 12:26:46 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-06-26 12:26:46 -0700 |
commit | e202826340c3293d4cb2a8900cbbd628bc1b9289 (patch) | |
tree | dbef252564f37ae2af1b0ab9465d884663a38711 /lib | |
parent | fd50b3c7117b6d462bf581c02f75582469c57f03 (diff) |
print a nice 'ok' when a host is alive.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/leap_cli/remote/leap_plugin.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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| |