brew-test-bot: move html and css into subdirectory
Also updates the bash-completion to ignore subdirectories, rather than specific filename patterns.
This commit is contained in:
		
							parent
							
								
									615c15937e
								
							
						
					
					
						commit
						6542b22677
					
				@ -375,9 +375,9 @@ _brew ()
 | 
			
		||||
    done
 | 
			
		||||
 | 
			
		||||
    if [[ $i -eq $COMP_CWORD ]]; then
 | 
			
		||||
        local ext=$(\ls $(brew --repository)/Library/Contributions/cmds \
 | 
			
		||||
        local ext=$(\ls -p $(brew --repository)/Library/Contributions/cmds \
 | 
			
		||||
                2>/dev/null | sed -e "s/\.rb//g" -e "s/brew-//g" \
 | 
			
		||||
                -e "s/.*\.css.*//g" -e "s/.*\.erb.*//g")
 | 
			
		||||
                -e "s/.*\///g")
 | 
			
		||||
        __brewcomp "
 | 
			
		||||
            --cache --cellar --config
 | 
			
		||||
            --env --prefix --repository
 | 
			
		||||
 | 
			
		||||
@ -108,7 +108,7 @@ class Test
 | 
			
		||||
 | 
			
		||||
    if ARGV.include? "--html" and not @@css
 | 
			
		||||
      require 'erb'
 | 
			
		||||
      root = HOMEBREW_CONTRIBUTED_CMDS
 | 
			
		||||
      root = HOMEBREW_CONTRIBUTED_CMDS/"brew-test-bot"
 | 
			
		||||
      @@css = IO.read root + "brew-test-bot.css"
 | 
			
		||||
      @@index_html = ERB.new IO.read root + "brew-test-bot.index.html.erb"
 | 
			
		||||
      @@commit_html = ERB.new IO.read root + "brew-test-bot.commit.html.erb"
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user