fix: Correction gestion direnv lorsqu'il n'est pas installé via asdf
This commit is contained in:
		
							
								
								
									
										12
									
								
								rc.d/direnv
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								rc.d/direnv
									
									
									
									
									
								
							| @@ -1,11 +1,6 @@ | |||||||
| #!/bin/bash | #!/bin/bash | ||||||
|  |  | ||||||
| if ( which asdf &> /dev/null ) | if (asdf which direnv &>/dev/null); then | ||||||
| then |  | ||||||
|  |  | ||||||
|   if ( asdf which direnv &> /dev/null ) |  | ||||||
|   then |  | ||||||
|  |  | ||||||
| 	# Hook direnv into your shell. | 	# Hook direnv into your shell. | ||||||
| 	eval "$(asdf exec direnv hook bash)" | 	eval "$(asdf exec direnv hook bash)" | ||||||
|  |  | ||||||
| @@ -13,11 +8,8 @@ then | |||||||
| 	direnv() { asdf exec direnv "$@"; } | 	direnv() { asdf exec direnv "$@"; } | ||||||
|  |  | ||||||
| 	return | 	return | ||||||
|   fi |  | ||||||
|  |  | ||||||
| elif ( which direnv &> /dev/null ) |  | ||||||
| then |  | ||||||
|  |  | ||||||
|  | elif (command -v direnv &>/dev/null); then | ||||||
| 	# Hook direnv into your shell. | 	# Hook direnv into your shell. | ||||||
| 	eval "$(direnv hook bash)" | 	eval "$(direnv hook bash)" | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user