Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
HadiChen committed Jun 23, 2017
1 parent 6ac8e22 commit 29492a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/execImplement.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const filesType = {
function getRemoteByRemoteUrl (path, type) {
return new Promise(function (resolve, reject) {
let filePath = `${path}/${filesType[type]}`

if (fs.existsSync(filePath) && filesType[type]) {
exec(filePath, (err, stdout, stderr) => {
console.log(`stdout: ${stdout}`)
Expand Down

0 comments on commit 29492a2

Please sign in to comment.