Skip to content

Commit

Permalink
chore: github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
legendecas committed Apr 2, 2020
1 parent 8e79497 commit ba96a39
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/tnvm/tnvm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,12 @@ export class TnvmAgent {
}

private findBash () {
const path = childProcess.execSync('type -p bash', { encoding: 'utf8' })
return path.trim()
try {
const path = childProcess.execSync('type -p bash', { encoding: 'utf8' })
return path.trim()
} catch {
const path = childProcess.execSync('which bash', { encoding: 'utf8' })
return path.trim()
}
}
}

0 comments on commit ba96a39

Please sign in to comment.