mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 18:25:52 +08:00 
			
		
		
		
	Retab tab to 4 spaces and use echo instead of cat in install.sh
This commit is contained in:
		
							
								
								
									
										31
									
								
								install.sh
									
									
									
									
									
								
							
							
						
						
									
										31
									
								
								install.sh
									
									
									
									
									
								
							| @@ -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 | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user