dev-util/github-cli: Fix name for the bash completion
The completion file ought to have the same name as the binary it tries to complete. Otherwise, it can't be dynamically loaded. Signed-off-by: Alex Turbov <i.zaufi@gmail.com>
This commit is contained in:
		
							parent
							
								
									1ec56f1125
								
							
						
					
					
						commit
						038b4e1de3
					
				@ -30,8 +30,8 @@ src_compile() {
 | 
				
			|||||||
    emake
 | 
					    emake
 | 
				
			||||||
    emake manpages
 | 
					    emake manpages
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	edo go run ./cmd/gh completion -s bash > gh.bash-completion
 | 
					    edo go run ./cmd/gh completion -s bash > gh.bash-completion
 | 
				
			||||||
	edo go run ./cmd/gh completion -s zsh > _gh
 | 
					    edo go run ./cmd/gh completion -s zsh > _gh
 | 
				
			||||||
    esandbox enable_net
 | 
					    esandbox enable_net
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -40,7 +40,7 @@ src_install() {
 | 
				
			|||||||
    emagicdocs
 | 
					    emagicdocs
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    doman share/man/man?/gh*.?
 | 
					    doman share/man/man?/gh*.?
 | 
				
			||||||
    dobashcompletion gh.bash-completion
 | 
					    dobashcompletion gh.bash-completion gh
 | 
				
			||||||
    dozshcompletion _gh
 | 
					    dozshcompletion _gh
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user