mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-12-13 08:34:19 +00:00
[Fix] set install dir to XDG_CONFIG_HOME/nvm, not XDG_CONFIG_HOME
seems to be the intent - wasn't happening on bash 4.4.19 at least
This commit is contained in:
@@ -8,7 +8,7 @@ nvm_has() {
|
|||||||
|
|
||||||
nvm_default_install_dir() {
|
nvm_default_install_dir() {
|
||||||
if [ -n "$XDG_CONFIG_HOME" ]; then
|
if [ -n "$XDG_CONFIG_HOME" ]; then
|
||||||
printf %s "${XDG_CONFIG_HOME/nvm}"
|
printf %s "${XDG_CONFIG_HOME}/nvm"
|
||||||
else
|
else
|
||||||
printf %s "$HOME/.nvm"
|
printf %s "$HOME/.nvm"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user