Permalink
Browse files

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

Also updates the bash-completion to ignore subdirectories, rather than
specific filename patterns.
  • Loading branch information...
1 parent b5a7c65 commit 1fb44658a8e3e296a2ae9c1429a8d01d92e7290b @mistydemeo mistydemeo committed with Jul 18, 2012
@@ -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 @@ def initialize arg
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 comments on commit 1fb4465

Please sign in to comment.