Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7b71fb7

Browse files
committedApr 15, 2024
chore: avoid pwd command
1 parent fe87310 commit 7b71fb7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎core/scripts/docker.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { execa } from 'execa';
22
import * as fs from 'fs';
3+
import { resolve } from 'path';
34

45
const removeNewline = (string) => {
56
return string.replace(/(\r\n|\n|\r)/gm, "");
@@ -9,7 +10,7 @@ const display = removeNewline(fs.readFileSync('docker-display.txt', { encoding:
910
const displayVolume = removeNewline(fs.readFileSync('docker-display-volume.txt', { encoding: 'utf-8' }));
1011

1112
// Using --mount requires an absolute path which is what this gives us.
12-
const { stdout: pwd } = await execa('pwd');
13+
const pwd = resolve('./');
1314

1415
/**
1516
* -it will let the user gracefully kill the process using Ctrl+C (or equivalent)

0 commit comments

Comments
 (0)
Please sign in to comment.