Skip to content

Commit

Permalink
path problem fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
alicilin committed Nov 10, 2019
1 parent 06a01a4 commit 7cf626d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ executor.linux = function (image, { c, p, a }) {
if(p) args.push('-p', p);
if(Array.isArray(a)) args.push(...a);

args.push(image);
args.push(`"${image}"`);

return exec(args.join(' '), options);
}
Expand All @@ -54,7 +54,7 @@ executor.windows = function (image, { c, p, a }) {
if (p) args.push('-p', p);
if (Array.isArray(a)) args.push(...a);

args.push(image);
args.push(`"${image}"`);

return exec(args.join(' '), options);
}
Expand Down
2 changes: 1 addition & 1 deletion install.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async function install(){

new AdmZip(path.join(__dirname, 'bin.zip')).extractAllTo(__dirname, true);
if (supos[os.platform()] === 'linux') {
let { stderr } = await exec('chmod 777 -R ./', { cwd: __dirname });
let { stderr } = await exec(`chmod 777 -R "${__dirname}"`);
if(stderr) throw new Error(stderr);
}

Expand Down

0 comments on commit 7cf626d

Please sign in to comment.