Revert "Default DENO_INSTALL to $HOME/.local (#89)" (#106)

This reverts commit 654d0ea309.
This commit is contained in:
Nayeem Rahman 2020-04-08 20:17:12 +01:00 committed by GitHub
parent 53daffe3ec
commit bd28456269
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 6 deletions

View file

@ -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`):**

View file

@ -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"

View file

@ -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