Fri, 09 Mar 2018 23:47:31 -0500
rearrange again to get the pragma right
592 | 1 | #!/bin/sh |
2 | set -eu | |
3 | ||
4 | if [ -d ~/.hgext/hg-git ]; then | |
5 | hg -R ~/.hgext/hg-git fetch | |
6 | else | |
7 | hg clone https://bitbucket.org/durin42/hg-git ~/.hgext/hg-git | |
8 | ||
9 | [ -f ~/.hgext/hgrc ] || echo '[extensions]' > ~/.hgext/hgrc | |
10 | echo 'hggit = ~/.hgext/hg-git/hggit' >> ~/.hgext/hgrc | |
11 | fi | |
12 |