mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix repoRoot issue
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
7f928f6962
commit
b10383fba6
@ -18,7 +18,7 @@ const {
|
||||
const exec = promisify(child_process.exec);
|
||||
const spawn = promisify(child_process.spawn);
|
||||
|
||||
const repoRoot = (await exec("git rev-parse --show-toplevel")).stdout;
|
||||
const repoRoot = (await exec("git rev-parse --show-toplevel")).stdout.trim();
|
||||
|
||||
if (process.cwd() !== repoRoot) {
|
||||
console.error("It looks like you are running this script from the 'scripts' directory. This script assumes it is run from the root of the git repo");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user