mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-15 00:21:50 +00:00
Keep creation of local var consistent
definition on one line initialization on another
This commit is contained in:
parent
ed29fa9bd8
commit
8839515af3
@ -132,7 +132,8 @@ nvm_do_install() {
|
|||||||
install_nvm_as_script
|
install_nvm_as_script
|
||||||
# Copies install.sh dir to installation dir
|
# Copies install.sh dir to installation dir
|
||||||
elif [ "~$METHOD" = "~copy" ]; then
|
elif [ "~$METHOD" = "~copy" ]; then
|
||||||
local COPY=true
|
local COPY
|
||||||
|
COPY=true
|
||||||
DIR=`nvm_script_dir`
|
DIR=`nvm_script_dir`
|
||||||
if [ $DIR = $NVM_DIR ]; then
|
if [ $DIR = $NVM_DIR ]; then
|
||||||
echo "=> install.sh is already in $NVM_DIR"
|
echo "=> install.sh is already in $NVM_DIR"
|
||||||
|
Loading…
Reference in New Issue
Block a user