Skip to content

Commit

Permalink
fix: use pwd when available
Browse files Browse the repository at this point in the history
  • Loading branch information
rishabh3112 committed Mar 23, 2019
1 parent 715df2b commit 7842541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { execSync } = require("child_process");
const fs = require("fs");
const { resolve } = require("path");

const USER_DIRECTORY = process.cwd();
const USER_DIRECTORY = process.env.PWD ? process.env.PWD : process.cwd();
const TEMPLATE_DIRECTORY = resolve(__dirname, "template");
const QUESTIONS = [
{
Expand Down

0 comments on commit 7842541

Please # to comment.