rbbt-util 5.26.106 → 5.26.108

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rbbt/hpc.rb +6 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 67f86b050f4d718535138ac44c788ddf7fc4bbe534f8d85b4c8efb88ff9f0242
4
- data.tar.gz: afced0303934c0d9440c588d506540555f717bf26fe1286c8233709d7e216bbf
3
+ metadata.gz: 72aacfdd57c5f982b528190df5f4290b6a0ef60e7e92e615dfdd357c16fbc953
4
+ data.tar.gz: f8a2bc9d3ad668b79e4704fffcc41a07697c76778432712070dded9046b25d6b
5
5
  SHA512:
6
- metadata.gz: a5910f0b9c36e8c517dbde40b5713fc44cf59c71b421cb5cadabb892600b3785d1affe326b2a51358fc258a3b9ffcefbd6794636db841ed445fdff722e51ec53
7
- data.tar.gz: fb1479a623c02780a687f193f99a5f454e2babea8485f3c26e503fafc03fb8d9b961ad56233f6dc120719bd8ac63c6fb5d5a2fceeb143635879b901c4d2594a9
6
+ metadata.gz: 6833cc84f92783ed1cfe7fcb28a523f69e39471489e4365f40e40a4741d34063873afc9ef03b3ea40c53d3cd8ae236c1ece74368a6649bc2927ffd56b914983e
7
+ data.tar.gz: 1e689bc7ce9ccc050b8941b4c7ae26c875e66b0fc7ff82e0494d74b79580822b41c28187a98ef12832074afc3ea9d90dd0f0f8f1a2a0cc2b39ea6708990fea05
data/lib/rbbt/hpc.rb CHANGED
@@ -290,6 +290,7 @@ EOF
290
290
 
291
291
  target = File.expand_path(sync)
292
292
  coda +=<<-EOF
293
+ mkdir -p "$(dirname '#{target}')"
293
294
  rsync -avztAXHP --copy-unsafe-links "#{source}/" "#{target}/" &>> #{fsync}
294
295
  sync_es="$?"
295
296
  find '#{target}' -type l -ls | awk '$13 ~ /^#{target.gsub('/','\/')}/ { sub("#{source}", "#{target}", $13); print $11, $13 }' | while read A B; do rm $A; ln -s $B $A; done
@@ -331,7 +332,11 @@ EOF
331
332
 
332
333
  # Write exit status to file
333
334
  echo $exit_status > #{fexit}
334
- unset exit_status
335
+ if [ $sync_es == '0' ]; then
336
+ exit $exit_status
337
+ else
338
+ exit $sync_es
339
+ fi
335
340
  EOF
336
341
 
337
342
  template = [header, env, run, coda] * "\n"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-util
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.26.106
4
+ version: 5.26.108
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-07 00:00:00.000000000 Z
11
+ date: 2020-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake