Skip to content

Commit

Permalink
Merge a88319d into 647e54f
Browse files Browse the repository at this point in the history
  • Loading branch information
yasserf committed Oct 29, 2020
2 parents 647e54f + a88319d commit c81ab8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/service/service.ts
Expand Up @@ -66,7 +66,7 @@ async function setupSystemD (name: string, options: any, callback: Function) {
console.log(`Installing service on: ${filepath}`)

const exists = existsSync(filepath)
if (!exists) {
if (exists) {
callback('Service already exists, please uninstall first')
return
}
Expand Down Expand Up @@ -125,7 +125,7 @@ async function setupSystemV (name: string, options: any, callback: Function) {
console.log(`Installing service on: ${filepath}`)

const exists = existsSync(filepath)
if (!exists) {
if (exists) {
callback('Service already exists, please uninstall first')
return
}
Expand Down

0 comments on commit c81ab8e

Please sign in to comment.