Keep creation of local var consistent

definition on one line
initialization on another
This commit is contained in:
LoveIsGrief 2014-11-23 11:34:16 +01:00
parent ed29fa9bd8
commit 8839515af3

View File

@ -132,7 +132,8 @@ nvm_do_install() {
install_nvm_as_script
# Copies install.sh dir to installation dir
elif [ "~$METHOD" = "~copy" ]; then
local COPY=true
local COPY
COPY=true
DIR=`nvm_script_dir`
if [ $DIR = $NVM_DIR ]; then
echo "=> install.sh is already in $NVM_DIR"