mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-11-03 22:47:13 +00:00 
			
		
		
		
	fixed shellcheck errors
This commit is contained in:
		
							parent
							
								
									6903c10e08
								
							
						
					
					
						commit
						127eb414da
					
				
							
								
								
									
										6
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								nvm.sh
									
									
									
									
									
								
							@ -2110,14 +2110,14 @@ nvm_die_on_prefix() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  for npmrc in $npmrcs; do
 | 
					  for npmrc in $npmrcs; do
 | 
				
			||||||
    if [ -f "${npmrc}/.npmrc" ]; then
 | 
					    if [ -f "${npmrc}/.npmrc" ]; then
 | 
				
			||||||
      NVM_NPM_PREFIX=$(grep ^prefix= ${npmrc}/.npmrc | sed s/prefix=\\\(.*\\\)$/\\1/)
 | 
					      NVM_NPM_PREFIX=$(grep ^prefix= "${npmrc}"/.npmrc | sed s/prefix=\\\(.*\\\)$/\\1/)
 | 
				
			||||||
      if ! [ -z $NVM_NPM_PREFIX ]; then
 | 
					      if ! [ -z "$NVM_NPM_PREFIX" ]; then
 | 
				
			||||||
        break
 | 
					        break
 | 
				
			||||||
      fi
 | 
					      fi
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
  done
 | 
					  done
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if ! [ -z $NVM_NPM_PREFIX ]; then
 | 
					  if ! [ -z "$NVM_NPM_PREFIX" ]; then
 | 
				
			||||||
    if ! (nvm_tree_contains_path "$NVM_DIR" "$NVM_NPM_PREFIX" >/dev/null 2>&1); then
 | 
					    if ! (nvm_tree_contains_path "$NVM_DIR" "$NVM_NPM_PREFIX" >/dev/null 2>&1); then
 | 
				
			||||||
      if [ "_$NVM_DELETE_PREFIX" = "_1" ]; then
 | 
					      if [ "_$NVM_DELETE_PREFIX" = "_1" ]; then
 | 
				
			||||||
        npm config --loglevel=warn delete prefix
 | 
					        npm config --loglevel=warn delete prefix
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user