forcing all commands to be parsed/executed by bash to simplify multiple make commands
This commit is contained in:
parent
ab61e8b8b5
commit
43d21e6e31
1 changed files with 6 additions and 3 deletions
|
@ -26,7 +26,7 @@
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: MspMoteType.java,v 1.21 2009/02/16 12:37:18 fros4943 Exp $
|
* $Id: MspMoteType.java,v 1.22 2009/02/17 11:47:12 fros4943 Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package se.sics.cooja.mspmote;
|
package se.sics.cooja.mspmote;
|
||||||
|
@ -500,8 +500,11 @@ public abstract class MspMoteType implements MoteType {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
logger.info("Compilation command: " + command);
|
logger.info("Compilation command: " + command);
|
||||||
compileProcess = Runtime.getRuntime().exec(command, null,
|
compileProcess = Runtime.getRuntime().exec(
|
||||||
parentDirectory);
|
new String[] {"bash", "-c", command},
|
||||||
|
null,
|
||||||
|
parentDirectory
|
||||||
|
);
|
||||||
|
|
||||||
final BufferedReader processNormal = new BufferedReader(
|
final BufferedReader processNormal = new BufferedReader(
|
||||||
new InputStreamReader(compileProcess.getInputStream()));
|
new InputStreamReader(compileProcess.getInputStream()));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue