Skip to content

Commit

Permalink
Merge pull request #96 from eoneill/eoneill/falsepages-dir-fix
Browse files Browse the repository at this point in the history
fix 'cd falsepages' command issue
  • Loading branch information
arishoham committed Dec 10, 2022
2 parents dc6275b + b6c6d2c commit 05a67d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/lighthouse/lighthouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async function startServer() {

// Traverse the 'pages' folder in project directory and capture list of endpoints to check
function getRoutes(subfolders = '') {
let commands = `cd ${SRC_DIRECTORY && `src/`}pages`;
let commands = `cd ${SRC_DIRECTORY ? `src/` : ''}pages`;
if (subfolders !== '') commands += ` && cd ${subfolders}`;
try {
const stdOut = execSync(`${commands} && ls`, { encoding: 'utf-8' });
Expand Down

0 comments on commit 05a67d9

Please sign in to comment.