Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

When installing the bash autocompletion, a newline is prepended to so…

…urcing in ~/.bashrc
  • Loading branch information...
commit 9213d8032b5afb58ce5d2b5c5adeb19d84e31623 1 parent e6037cd
Sebastian Georgi authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  lib/capita_git/cli.rb
  2. +1 −1  lib/capita_git/version.rb
View
2  lib/capita_git/cli.rb
@@ -165,7 +165,7 @@ def backport(fix_branch=nil)
def install_autocomplete
root = File.expand_path("../../", __FILE__)
system "cp #{root}/bash_completion.txt ~/.gitc_completion"
- system "if grep -q 'gitc_completion' ~/.bashrc; then echo 'Done'; else echo '. .gitc_completion' >> ~/.bashrc; . ~/.gitc_completion; fi"
+ system "if grep -q 'gitc_completion' ~/.bashrc; then echo 'Done'; else echo -e '\n. .gitc_completion' >> ~/.bashrc; . ~/.gitc_completion; fi"
end
desc "publish", "Published a local branch to origin"
View
2  lib/capita_git/version.rb
@@ -1,3 +1,3 @@
module CapitaGit
- VERSION = "0.1.6"
+ VERSION = "0.1.7"
end
Please sign in to comment.
Something went wrong with that request. Please try again.