浏览代码

[TravisCI] another Sys.command fix

Andy Li 11 年之前
父节点
当前提交
ebecb7b8f3
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      tests/RunTravis.hx

+ 4 - 2
tests/RunTravis.hx

@@ -148,8 +148,10 @@ class RunTravis {
 				runCommand(Sys.getEnv("HOME") + "/flashplayerdebugger", ["-v"]);
 			case "Mac":
 				runCommand("brew", ["cask", "install", "flash-player-debugger"]);
-				runCommand("sudo", ["mkdir", "-p", Path.directory(mmcfgPath)]);
-				runCommand("printf", ["ErrorReportingEnable=1\nTraceOutputFileEnable=1" , "|", "sudo", "tee", mmcfgPath, ">", "/dev/null"]);
+				var dir = Path.directory(mmcfgPath);
+				runCommand("sudo", ["mkdir", "-p", dir]);
+				runCommand("sudo", ["chmod", "a+w", dir]);
+				File.saveContent(mmcfgPath, "ErrorReportingEnable=1\nTraceOutputFileEnable=1");
 		}
 	}