mirror of
https://github.com/danbulant/deno_install
synced 2026-06-18 14:01:26 +00:00
16 lines
374 B
Bash
Executable file
16 lines
374 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
# Lint.
|
|
# TODO(ry) shellcheck -s sh ./*.sh
|
|
|
|
# Test that we can install the latest version at the default location.
|
|
unset DENO_INSTALL
|
|
sh ./install.sh
|
|
~/.local/bin/deno --version
|
|
|
|
# Test that we can install a specific version at a custom location.
|
|
export DENO_INSTALL="$HOME/deno-0.13.0"
|
|
./install.sh v0.13.0
|
|
~/deno-0.13.0/bin/deno --version | grep 0.13.0
|