mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fallback to process.cwd() when PWD is not present (#24677)
Fixes #24582 - Error running yarn dev command
This commit is contained in:
parent
77148ef616
commit
660f2b4e99
@ -8,7 +8,7 @@ let includeInternalScripts = false;
|
||||
const isLinkedMode = () => {
|
||||
// In circleci we are in linked mode. Detect by using the circle working directory,
|
||||
// rather than the present working directory.
|
||||
const pwd = process.env.CIRCLE_WORKING_DIRECTORY || process.env.PWD;
|
||||
const pwd = process.env.CIRCLE_WORKING_DIRECTORY || process.env.PWD || process.cwd();
|
||||
|
||||
if (path.basename(pwd) === 'grafana-toolkit') {
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user