Skip to content

Commit 70e87d9

Browse files
authored
cp -r instead of mv (#45)
* cp -r instead of mv cp -r instead of mv, as windows tend to be messy with directories and renders them as "busy"
1 parent e6e2863 commit 70e87d9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

run.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,10 @@ tar -czf test.${TIME}.tar.gz "${jtWork}" "${jtReport}" || echo "Packing of resul
152152
popd
153153

154154
if [ ! `readlink $READLINK_F ${SCRIPT_DIR}` == `pwd` ] ; then
155-
mv ${SCRIPT_DIR}/test.${TIME} .
156-
mv -v ${SCRIPT_DIR}/test.${TIME}.tar.gz . || echo "Moving of results tarball failed"
155+
cp -r ${SCRIPT_DIR}/test.${TIME} .
156+
rm -rf ${SCRIPT_DIR}/test.${TIME} || echo "Removal of results folder failed, thats usually ok"
157+
cp -r ${SCRIPT_DIR}/test.${TIME}.tar.gz . || echo "Copyingof results tarball failed, thats usually ok"
158+
rm -rf ${SCRIPT_DIR}/test.${TIME}.tar.gz || echo "Removal of results tarball failed, thats usually ok"
157159
fi
158160

159161
if ! [ -f test.${TIME}/tests.log ] ; then

0 commit comments

Comments
 (0)