+ results_dir=/tmp/results
+ trap saveResults EXIT
+ [ 2 -eq 0 ]
+ i=0
+ [ echo hello world !=  ]
+ /bin/sh -c echo hello world
+ i=1
+ shift
+ [ echo hello world pt2 !=  ]
+ /bin/sh -c echo hello world pt2
+ i=2
+ shift
+ [  !=  ]
+ saveResults
+ cd /tmp/results
+ tar czf results.tar.gz done out0 out1 results.tar.gz
+ printf /tmp/results/results.tar.gz
