rclone: add bash-completion

Closes #8745.

Signed-off-by: William Woodruff <william@tuffbizz.com>
This commit is contained in:
not David 2017-01-11 19:32:41 +01:00 committed by William Woodruff
parent 75caa601d2
commit 30c784a428
No known key found for this signature in database
GPG key ID: 85AE00C504833B3C

View file

@ -160,6 +160,9 @@ class Rclone < Formula
ln_s buildpath, buildpath/"src/github.com/ncw/rclone"
Language::Go.stage_deps resources, buildpath/"src"
system "go", "build", "-o", bin/"rclone"
system bin/"rclone", "genautocomplete", "bash_completion"
bash_completion.install "bash_completion" => "rclone"
end
test do