Skip to content

Commit

Permalink
Update pullRemote.js
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieSlome authored Oct 20, 2024
1 parent a1d8f42 commit 0208d9b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/proxy/processors/push-action/pullRemote.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ const Step = require('../../actions').Step;
const fs = require('fs');
const dir = './.remote';

if (!fs.existsSync(dir)) {
fs.mkdirSync(dir);
}

const exec = async (req, action) => {
const step = new Step('pullRemote');

Expand All @@ -15,6 +11,10 @@ const exec = async (req, action) => {

step.log(`Creating folder ${action.proxyGitPath}`);

if (!fs.existsSync(dir)) {
fs.mkdirSync(dir);
}

if (!fs.existsSync(action.proxyGitPath)) {
fs.mkdirSync(action.proxyGitPath, '0777', true);
}
Expand Down

0 comments on commit 0208d9b

Please sign in to comment.