From 451b67fe78671f7d28b8875298354563fc42e72e Mon Sep 17 00:00:00 2001 From: Aria Stewart Date: Tue, 23 Aug 2016 17:32:28 -0400 Subject: [PATCH] Revert %s-formatting for SOURCE_STR when writing to shell profile --- install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 2cdd0d2..58ee58a 100755 --- a/install.sh +++ b/install.sh @@ -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 + echo "=> Appending source string to $NVM_PROFILE" + command printf "$SOURCE_STR" >> "$NVM_PROFILE" else echo "=> Source string already in ${NVM_PROFILE}" fi @@ -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" } #