1
0
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:
Sebastian Malton 2023-02-23 16:17:35 -05:00
parent 7f928f6962
commit b10383fba6

View File

@ -18,7 +18,7 @@ const {
const exec = promisify(child_process.exec); const exec = promisify(child_process.exec);
const spawn = promisify(child_process.spawn); 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) { 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"); 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");