mirror of
https://github.com/easingthemes/ssh-deploy.git
synced 2025-06-22 12:32:09 +10:00
fix path arg
This commit is contained in:
parent
5dfe8ebb5a
commit
11a1bc7795
3 changed files with 9 additions and 6 deletions
|
@ -2,6 +2,10 @@ const { existsSync, mkdirSync, writeFileSync } = require('fs');
|
|||
const { join } = require('path');
|
||||
|
||||
const validateDir = (dir) => {
|
||||
if (!dir) {
|
||||
console.log('[SSH] dir is not defined');
|
||||
return;
|
||||
}
|
||||
if (existsSync(dir)) {
|
||||
console.log(`[SSH] ${dir} dir exist`);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue