mofa 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -68,7 +68,7 @@ class UploadCmd < MofaCmd
68
68
  :port => Mofa::Config.config['binrepo_ssh_port'],
69
69
  :verbose => :error,
70
70
  :use_agent => false) do |ssh|
71
- out = ssh_exec!(ssh, "[ -f #{import_dir}/#{cookbook.name}/#{cookbook.version}/#{cookbook.pkg_name} ] || echo -n already_exists")
71
+ out = ssh_exec!(ssh, "if [ -f #{import_dir}/#{cookbook.pkg_name} ];then echo -n already_exists;fi")
72
72
  fail "ERROR (#{out[0]}): #{out[2]}" if out[0] != 0
73
73
  already_uploaded = true if out[1] == 'already_exists'
74
74
  end
@@ -1,3 +1,3 @@
1
1
  module Mofa
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mofa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: