Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

Commit 9630a91

Browse files
committed
- encode windows path to get rid of ':' before passing it as argument to the grunt task
1 parent 43258ef commit 9630a91

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tasks/setup.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ module.exports = function (grunt) {
157157
// optionally download if CEF is not found
158158
if (!grunt.file.exists(path.resolve(path.join(symbolFileLocation(), txtName)))) {
159159
// pass the name of the zip file
160-
var cefTasks = ["cef-symbols-extract" + ":" + zipDest];
160+
var zipDestSafe = zipDest.replace(":", "|");
161+
var cefTasks = ["cef-symbols-extract" + ":" + zipDestSafe];
161162

162163
if (grunt.file.exists(zipDest)) {
163164
grunt.verbose.writeln("Found CEF symbols download " + zipDest);
@@ -178,7 +179,7 @@ module.exports = function (grunt) {
178179
grunt.task.requires(["cef-symbols"]);
179180

180181
var done = this.async(),
181-
zipDest = arguments[0],
182+
zipDest = arguments[0].replace("|", ":"),
182183
zipName = path.basename(zipDest, '.zip'),
183184
unzipPromise;
184185

0 commit comments

Comments
 (0)