Skip to content

Commit

Permalink
fix: cli paths (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickmichalina authored Oct 2, 2019
1 parent 986bfb0 commit d4916b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ if (!existsSync(dir)){
mkdirSync(dir)
}

writeFileSync(outPath, '#!/usr/bin/env node\nrequire(\'../\').startCli()')
writeFileSync(outPath, '#!/usr/bin/env node\nrequire(\'./camera-probe-cjs\').cli()')
chmodSync(outPath, '755')
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export * from './config/config.interface'
export const probe = initSocketStream.flatMap(onvifProbe)
export const devices$ = () => probe.run(DEFAULT_CONFIG)

export const startCli$ = () => devices$()
export const cli = () => devices$()
.subscribe(v => {
console.log('\n')
console.log('Scanning for networked cameras...')
Expand Down

0 comments on commit d4916b5

Please sign in to comment.