smart_proxy_remote_execution_ssh 0.11.3 → 0.11.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a44e8072b7eccb341e63dd4c1b61bbec636b5bd9a893a82164770460de13c2cc
4
- data.tar.gz: c6aabe34bae0130ef13c9d3484fee7ac2a5f2776b36fe2e9a7f6f55e1794a0a2
3
+ metadata.gz: ab09d3de425de64ea7c79bdd7a94463bb09a4ca3f6bcf27bee3d67ce2c63c1db
4
+ data.tar.gz: 97b54ed101559c83922001297fa75bcedf8610c78f84eb8ee573db7371ab0246
5
5
  SHA512:
6
- metadata.gz: c825b59f950f9b583f20b7d2201958d8dbf5e743b6866050acdc4b17f96948ddffa9db3b62ba66c1b28a9544173910a563cac6919af31a94b8eb126043d7bb03
7
- data.tar.gz: f1212d6f0a68e521edb27124d8e23808c82d7ddc9d05a48c9e413e4c7878a0d3f65263a8dd5cf03c6937b0c0a234aa59fc9e95ecbc24a3bc382e59d14d4302de
6
+ metadata.gz: 0dbe4a0210cd06d39a31f20d277d8f28ab59afb0efe72685394a810fa7ba723a1aeacdd5b6f62d43b16dd5a3f83c71b8cd852e5661c6610fa5a2204dfd3389e1
7
+ data.tar.gz: 7b17fc3f18a0b90d0a4e817df930985b8a80c2c40e94c3b5b1c01318bc84e1f1a9ac8a749ef5aad4d78fe38a0aaa34422eb1167a3e18aca1b078655add605ea6
@@ -191,6 +191,11 @@ module Proxy::RemoteExecution::Ssh::Runners
191
191
  #{@user_method.cli_command_prefix}#{su_method ? "'exec #{@remote_script} < /dev/null '" : "#{@remote_script} < /dev/null"}
192
192
  echo \$? >#{@exit_code_path}
193
193
  ) | tee #{@output_path}
194
+ if [ -f #{@exit_code_path} ] && [ $(wc -l < #{@exit_code_path}) -gt 0 ]; then
195
+ exit $(cat #{@exit_code_path})
196
+ else
197
+ exit 1
198
+ fi
194
199
  else
195
200
  UNSHARE=''
196
201
  if #{UNSHARE_PREFIX} true >/dev/null 2>/dev/null; then
@@ -1,7 +1,7 @@
1
1
  module Proxy
2
2
  module RemoteExecution
3
3
  module Ssh
4
- VERSION = '0.11.3'
4
+ VERSION = '0.11.4'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_proxy_remote_execution_ssh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.3
4
+ version: 0.11.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Nečas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-24 00:00:00.000000000 Z
11
+ date: 2024-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler