Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Sep 4, 2022
1 parent 9b6d453 commit 260f546
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions nvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3539,7 +3539,7 @@ nvm() {
local IS_VERSION_FROM_NVMRC
IS_VERSION_FROM_NVMRC=0
local NVM_WRITE_TO_NVMRC
NVM_WRITE_TO_NVMRC="${NVM_WRITE_TO_NVMRC:=0}"
NVM_WRITE_TO_NVMRC=0

while [ $# -ne 0 ]; do
case "$1" in
Expand Down Expand Up @@ -3586,7 +3586,7 @@ nvm() {
fi
local NVMRC_SAVE_TEXT
NVMRC_SAVE_TEXT=''
if [ "${NVM_WRITE_TO_NVMRC}" -eq 1 ] && [ "${VERSION}" != '' ] && [ "${VERSION}" != 'N/A' ]; then
if [ $NVM_WRITE_TO_NVMRC -eq 1 ] && [ "${VERSION}" != '' ] && [ "${VERSION}" != 'N/A' ]; then
echo "${VERSION}" | tee "${PWD}"/.nvmrc > /dev/null || {
nvm_err "Warning: Unable to write version \`${VERSION}\` to .nvmrc"
exit 3
Expand Down
2 changes: 1 addition & 1 deletion test/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,4 @@ watch() {
EXIT_CODE=$?
kill %2;
return $EXIT_CODE
}
}

0 comments on commit 260f546

Please sign in to comment.