Skip to content
Snippets Groups Projects
Commit 6542b226 authored by Misty De Meo's avatar Misty De Meo
Browse files

brew-test-bot: move html and css into subdirectory

Also updates the bash-completion to ignore subdirectories, rather than
specific filename patterns.
parent 615c1593
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment