Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,9 @@ nvm_do_install() {
echo "=> Append the following lines to the correct file yourself:"
command printf "${SOURCE_STR}"
else
if ! command grep -qc '/nvm.sh' "${NVM_PROFILE}"; then
echo "=> Appending source string to ${NVM_PROFILE}"
command printf "%s" "${SOURCE_STR}" >> "${NVM_PROFILE}"
if ! command grep -qc '/nvm.sh' "$NVM_PROFILE"; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do the curlies make a difference? or are you just reverting the whole commit

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The curlies don't matter -- either syntax is legit.

echo "=> Appending source string to $NVM_PROFILE"
command printf "$SOURCE_STR" >> "$NVM_PROFILE"
else
echo "=> Source string already in ${NVM_PROFILE}"
fi
Expand All @@ -300,7 +300,7 @@ nvm_do_install() {
nvm_reset

echo "=> Close and reopen your terminal to start using nvm or run the following to use it now:"
command printf "%s" "${SOURCE_STR}"
command printf "$SOURCE_STR"
}

#
Expand Down