We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a1d8f42 + 234313a commit e16dfe9Copy full SHA for e16dfe9
src/proxy/processors/push-action/pullRemote.js
@@ -3,10 +3,6 @@ const Step = require('../../actions').Step;
3
const fs = require('fs');
4
const dir = './.remote';
5
6
-if (!fs.existsSync(dir)) {
7
- fs.mkdirSync(dir);
8
-}
9
-
10
const exec = async (req, action) => {
11
const step = new Step('pullRemote');
12
@@ -15,6 +11,10 @@ const exec = async (req, action) => {
15
16
step.log(`Creating folder ${action.proxyGitPath}`);
17
13
14
+ if (!fs.existsSync(dir)) {
+ fs.mkdirSync(dir);
+ }
+
18
if (!fs.existsSync(action.proxyGitPath)) {
19
fs.mkdirSync(action.proxyGitPath, '0777', true);
20
}
0 commit comments