mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-11-04 15:07:13 +00:00 
			
		
		
		
	make the path array POSIX compliant
This commit is contained in:
		
							parent
							
								
									c7cac323d6
								
							
						
					
					
						commit
						c9aaeffcbd
					
				
							
								
								
									
										5
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								nvm.sh
									
									
									
									
									
								
							@ -2106,10 +2106,9 @@ nvm_die_on_prefix() {
 | 
			
		||||
  fi
 | 
			
		||||
 | 
			
		||||
  local NVM_NPM_PREFIX
 | 
			
		||||
  local npmrcs=". $HOME"
 | 
			
		||||
 | 
			
		||||
  declare -a npmrcs=("." "$HOME")
 | 
			
		||||
 | 
			
		||||
  for npmrc in "${npmrcs[@]}"; do
 | 
			
		||||
  for npmrc in $npmrcs; do
 | 
			
		||||
    if [ -f "${npmrc}/.npmrc" ]; then
 | 
			
		||||
      NVM_NPM_PREFIX=$(grep ^prefix= ${npmrc}/.npmrc | sed s/prefix=\\\(.*\\\)$/\\1/)
 | 
			
		||||
      if [[ -n $NVM_NPM_PREFIX ]]; then
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user