Skip to content

Commit

Permalink
style: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode committed Feb 22, 2021
1 parent 86a2a39 commit 8e2ce2f
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/commands/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@ function createHookFile(file: string, cmd: string) {
throw new Error(`${file} already exists`)
}

const data = ['#!/bin/sh', '. "$(dirname "$0")/_/husky.sh"', '', cmd, ''].join(
'\n'
)
const data = [
'#!/bin/sh',
'. "$(dirname "$0")/_/husky.sh"',
'',
cmd,
'',
].join('\n')

fs.writeFileSync(file, data, 'utf-8')
// Show "./file" instead of just "file"
Expand Down

0 comments on commit 8e2ce2f

Please sign in to comment.