Skip to content

Commit

Permalink
fix: fix linux bug
Browse files Browse the repository at this point in the history
  • Loading branch information
EryouHao committed Dec 22, 2019
1 parent 84d7523 commit 3027df1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/server/deploy.ts
Expand Up @@ -33,7 +33,13 @@ export default class Deploy extends Model {
}
try {
const { setting } = this.db
const isRepo = await this.git.checkIsRepo()
let isRepo = false
try {
isRepo = await this.git.checkIsRepo()
} catch (e) {
console.log('Not a repo', e.message)
}

if (!setting.username || !setting.repository || !setting.token) {
return {
success: false,
Expand Down

0 comments on commit 3027df1

Please sign in to comment.