How do I get Hudson to stop escaping parts of my shell script?

Posted by Rob Spieldenner on Stack Overflow See other posts from Stack Overflow or by Rob Spieldenner
Published on 2010-04-21T21:03:29Z Indexed on 2010/04/21 21:23 UTC
Read the original article Hit count: 198

Filed under:

I would like to have a shell script that copies some logs from a part of my system to the hudson workspace so I can archive them.

So right now I have

#!/bin/bash -ex
cp /directory/structure/*.log .

This is kind enough to be changed to

cp '/directory/structure/*.log' .

Which of course is not found since I don't have a file named *.log.

So how do I get this script to work?

© Stack Overflow or respective owner

Related posts about hudson