Skip to content

Commit

Permalink
fix context error on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pirog committed Nov 26, 2024
1 parent 323920e commit ab1c0c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions bin/lando.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo off

node "%~dp0\lando" %*
4 changes: 2 additions & 2 deletions components/l337-v4.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ class L337ServiceV4 extends EventEmitter {
file.instructions = file.url ? ['ADD'] : ['COPY'];
if (file.owner) file.instructions.push(`--chown=${file.owner}`);
if (file.permissions) file.instructions.push(`--chmod=${file.permissions}`);
file.instructions.push(file.url ?? path.join('.', file.target));
file.instructions.push(process.platform === 'win32' ? file.target : path.resolve('/', file.target));
file.instructions.push(file.url ?? path.posix.resolve('/', file.target));
file.instructions.push(path.posix.resolve('/', file.target));
file.instructions = file.instructions.join(' ');
}

Expand Down

0 comments on commit ab1c0c2

Please sign in to comment.