mirror of
https://github.com/danbulant/deno_install
synced 2026-07-04 10:40:47 +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
|
## Environment Variables
|
||||||
|
|
||||||
- `DENO_INSTALL` - The directory in which to install Deno. This defaults to
|
- `DENO_INSTALL` - The directory in which to install Deno. This defaults to
|
||||||
`$HOME/.local` on Linux/macOS and `$HOME/.deno` on Windows. The executable
|
`$HOME/.deno`. The executable is placed in `$DENO_INSTALL/bin`. One
|
||||||
is placed in `$DENO_INSTALL/bin`. One application of this is a system-wide
|
application of this is a system-wide installation:
|
||||||
installation:
|
|
||||||
|
|
||||||
**With Shell (`/usr/local`):**
|
**With Shell (`/usr/local`):**
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ else
|
||||||
deno_uri="https://github.com/denoland/deno/releases/download/${1}/deno-${target}.zip"
|
deno_uri="https://github.com/denoland/deno/releases/download/${1}/deno-${target}.zip"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
deno_install="${DENO_INSTALL:-$HOME/.local}"
|
deno_install="${DENO_INSTALL:-$HOME/.deno}"
|
||||||
bin_dir="$deno_install/bin"
|
bin_dir="$deno_install/bin"
|
||||||
exe="$bin_dir/deno"
|
exe="$bin_dir/deno"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,10 @@ set -e
|
||||||
# TODO(ry) shellcheck -s sh ./*.sh
|
# TODO(ry) shellcheck -s sh ./*.sh
|
||||||
|
|
||||||
# Test that we can install the latest version at the default location.
|
# 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
|
unset DENO_INSTALL
|
||||||
sh ./install.sh
|
sh ./install.sh
|
||||||
~/.local/bin/deno --version
|
~/.deno/bin/deno --version
|
||||||
|
|
||||||
# Test that we can install a specific version at a custom location.
|
# Test that we can install a specific version at a custom location.
|
||||||
rm -rf ~/deno-0.38.0
|
rm -rf ~/deno-0.38.0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue