mirror of
https://github.com/asdf-vm/asdf-nodejs.git
synced 2024-10-06 07:42:08 +08:00
Merge pull request #36 from ypid/use/ASDF_DIR_env_var
Use ASDF_DIR environment variable if available
This commit is contained in:
commit
53200f1fba
@ -42,7 +42,7 @@ The `gpg` commands above imports the OpenPGP public keys in your main OpenPGP ke
|
||||
To use a dedicated keyring, prepare the dedicated keyring and set it as the default keyring in the current shell:
|
||||
|
||||
```bash
|
||||
export GNUPGHOME="$HOME/.asdf/keyrings/nodejs" && mkdir -p "$GNUPGHOME" && chmod 0700 "$GNUPGHOME"
|
||||
export GNUPGHOME="${ASDF_DIR:-$HOME/.asdf}/keyrings/nodejs" && mkdir -p "$GNUPGHOME" && chmod 0700 "$GNUPGHOME"
|
||||
|
||||
# Imports Node.js release team's OpenPGP keys to the keyring
|
||||
bash ~/.asdf/plugins/nodejs/bin/import-release-team-keyring
|
||||
|
@ -168,8 +168,8 @@ download_and_verify_checksums() {
|
||||
fi
|
||||
|
||||
(
|
||||
if [ -z "${GNUPGHOME:-}" ] && [ -d "$HOME/.asdf/keyrings/nodejs" ]; then
|
||||
export GNUPGHOME="$HOME/.asdf/keyrings/nodejs"
|
||||
if [ -z "${GNUPGHOME:-}" ] && [ -d "${ASDF_DIR:-$HOME/.asdf}/keyrings/nodejs" ]; then
|
||||
export GNUPGHOME="${ASDF_DIR:-$HOME/.asdf}/keyrings/nodejs"
|
||||
fi
|
||||
|
||||
if ! $gnugp_verify_command_name --verify "$signed_checksum_file"; then
|
||||
|
Loading…
Reference in New Issue
Block a user