Skip to content

Commit

Permalink
fix(system/exec): add undefined check for TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
HipsterBrown committed Nov 27, 2024
1 parent ee6aa59 commit 693baa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/toolbox/system/exec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { Device } from '../../types'

function ensureAskPass(): void {
const SUDO_ASKPASS = system.which('ssh-askpass')
if (SUDO_ASKPASS === null) {
if (SUDO_ASKPASS === null || SUDO_ASKPASS === undefined) {
print.warning('ssh-askpass required to prompt for password')
process.exit(1)
}
Expand Down

0 comments on commit 693baa1

Please sign in to comment.