mirror of
https://github.com/danbulant/deno_install
synced 2026-06-14 20:21:30 +00:00
This reverts commit 654d0ea309.
This commit is contained in:
parent
53daffe3ec
commit
bd28456269
3 changed files with 5 additions and 6 deletions
|
|
@ -84,9 +84,8 @@ scoop reset deno
|
|||
## Environment Variables
|
||||
|
||||
- `DENO_INSTALL` - The directory in which to install Deno. This defaults to
|
||||
`$HOME/.local` on Linux/macOS and `$HOME/.deno` on Windows. The executable
|
||||
is placed in `$DENO_INSTALL/bin`. One application of this is a system-wide
|
||||
installation:
|
||||
`$HOME/.deno`. The executable is placed in `$DENO_INSTALL/bin`. One
|
||||
application of this is a system-wide installation:
|
||||
|
||||
**With Shell (`/usr/local`):**
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ else
|
|||
deno_uri="https://github.com/denoland/deno/releases/download/${1}/deno-${target}.zip"
|
||||
fi
|
||||
|
||||
deno_install="${DENO_INSTALL:-$HOME/.local}"
|
||||
deno_install="${DENO_INSTALL:-$HOME/.deno}"
|
||||
bin_dir="$deno_install/bin"
|
||||
exe="$bin_dir/deno"
|
||||
|
||||
|
|
|
|||
|
|
@ -6,10 +6,10 @@ set -e
|
|||
# TODO(ry) shellcheck -s sh ./*.sh
|
||||
|
||||
# Test that we can install the latest version at the default location.
|
||||
rm -f ~/.local/bin/deno
|
||||
rm -f ~/.deno/bin/deno
|
||||
unset DENO_INSTALL
|
||||
sh ./install.sh
|
||||
~/.local/bin/deno --version
|
||||
~/.deno/bin/deno --version
|
||||
|
||||
# Test that we can install a specific version at a custom location.
|
||||
rm -rf ~/deno-0.38.0
|
||||
|
|
|
|||
Loading…
Reference in a new issue