Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Commit

Permalink
get rid of last run usage
Browse files Browse the repository at this point in the history
  • Loading branch information
harrysolovay committed Feb 28, 2023
1 parent 7915b15 commit 8b698a3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions providers/frame/FrameBinProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,12 @@ export abstract class FrameBinProvider extends FrameProxyProvider {
binValid?: Promise<void>
assertBinValid() {
return this.binValid ??= (async () => {
const whichProcess = Deno.run({
cmd: ["which", this.bin],
const whichProcess = new Deno.Command("which", {
args: [this.bin],
stdout: "piped",
})
const binPathBytes = await whichProcess.output()
whichProcess.close()
if (!binPathBytes.length) {
if (!binPathBytes.stdout.length) {
throw new Error(
`No such bin "${this.bin}" in path. Installation instructions can be found here: "${this.installation}"`,
)
Expand Down

0 comments on commit 8b698a3

Please sign in to comment.