Retab tab to 4 spaces and use echo instead of cat in install.sh

Peter Dave Hello 2016-10-28 11:23:37 +08:00
parent ce7f6d6e52
commit a458ccbb87
1 changed files with 16 additions and 15 deletions

View File

@ -244,23 +244,24 @@ nvm_check_global_modules() {
)" )"
if [ "${MODULE_COUNT}" != '0' ]; then if [ "${MODULE_COUNT}" != '0' ]; then
cat <<-'END_MESSAGE' # shellcheck disable=SC2016
=> You currently have modules installed globally with `npm`. These will no echo '=> You currently have modules installed globally with `npm`. These will no'
=> longer be linked to the active version of Node when you install a new node # shellcheck disable=SC2016
=> with `nvm`; and they may (depending on how you construct your `$PATH`) echo '=> longer be linked to the active version of Node when you install a new node'
=> override the binaries of modules installed with `nvm`: # shellcheck disable=SC2016
echo '=> with `nvm`; and they may (depending on how you construct your `$PATH`)'
# shellcheck disable=SC2016
echo '=> override the binaries of modules installed with `nvm`:'
echo
END_MESSAGE
command printf %s\\n "$NPM_GLOBAL_MODULES" command printf %s\\n "$NPM_GLOBAL_MODULES"
cat <<-'END_MESSAGE' echo '=> If you wish to uninstall them at a later point (or re-install them under your'
# shellcheck disable=SC2016
=> If you wish to uninstall them at a later point (or re-install them under your echo '=> `nvm` Nodes), you can remove them from the system Node as follows:'
=> `nvm` Nodes), you can remove them from the system Node as follows: echo
echo ' $ nvm use system'
$ nvm use system echo ' $ npm uninstall -g a_module'
$ npm uninstall -g a_module echo
END_MESSAGE
fi fi
} }