Skip to content
This repository was archived by the owner on Mar 11, 2019. It is now read-only.

Commit 6895fd3

Browse files
huertasmcolmant
authored andcommitted
fix(cli): add condition for bash command to make compatible with Windows
1 parent 6e4b879 commit 6895fd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

powerapi-cli/src/main/scala/org/powerapi/app/PowerAPI.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ object PowerAPI extends App {
169169
}
170170

171171
else {
172-
Seq("bash", "scripts/system.bash").!
172+
if(!System.getProperty("os.name").startsWith("Windows")) Seq("bash", "scripts/system.bash").!
173173
val (configuration, duration) = cli(List(), "3600", args.toList)
174174

175175
for(powerMeterConf <- configuration) {

0 commit comments

Comments
 (0)