Revert %s-formatting for SOURCE_STR when writing to shell profile

Aria Stewart 2016-08-23 17:32:28 -04:00
parent d179810b25
commit 451b67fe78
1 changed files with 4 additions and 4 deletions

View File

@ -281,9 +281,9 @@ nvm_do_install() {
echo "=> Append the following lines to the correct file yourself:" echo "=> Append the following lines to the correct file yourself:"
command printf "${SOURCE_STR}" command printf "${SOURCE_STR}"
else else
if ! command grep -qc '/nvm.sh' "${NVM_PROFILE}"; then if ! command grep -qc '/nvm.sh' "$NVM_PROFILE"; then
echo "=> Appending source string to ${NVM_PROFILE}" echo "=> Appending source string to $NVM_PROFILE"
command printf "%s" "${SOURCE_STR}" >> "${NVM_PROFILE}" command printf "$SOURCE_STR" >> "$NVM_PROFILE"
else else
echo "=> Source string already in ${NVM_PROFILE}" echo "=> Source string already in ${NVM_PROFILE}"
fi fi
@ -300,7 +300,7 @@ nvm_do_install() {
nvm_reset nvm_reset
echo "=> Close and reopen your terminal to start using nvm or run the following to use it now:" 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"
} }
# #