Mon, 22 May 2017 20:52:28 -0400
move begin into function too
356 | 1 | #!/bin/sh |
2 | set -eu | |
3 | ||
4 | if [ -d ~/.hgext/evolve ]; then | |
5 | hg -R ~/.hgext/evolve fetch | |
6 | else | |
7 | hg clone https://www.mercurial-scm.org/repo/evolve ~/.hgext/evolve | |
8 | printf '[extensions]\nevolve = ~/.hgext/evolve/hgext/evolve.py\n' >> ~/.hgrc.local | |
9 | fi | |
10 |