Skip to content

Commit 176ffd7

Browse files
fix deno script
1 parent 87e6982 commit 176ffd7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tools/deno.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
11
#!/bin/zsh -e
22

3-
denoPath=`which deno`
4-
53
info() {
6-
if [ -f ${denoPath} ]; then
4+
if [ -x "$(command -v deno)" ]; then
75
echo
86
deno --version
97
which deno
108
echo
119
else
12-
echo "Not installed"
13-
fi
10+
echo "Not installed or not in PATH"
11+
fi
1412
}
1513

1614
whoami() {
1715
return
1816
}
1917

2018
install() {
21-
echo "TODO: implement"
19+
brew install deno
2220
}
2321

2422
"$@"

0 commit comments

Comments
 (0)