comparison enable.sh @ 207:15a89eeff66f

fix enable.sh script it was printing the mercurial version in to HGRC file
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Mon, 23 Apr 2012 15:14:51 +0200
parents b0ee408732cd
children d254ca935aa5
comparison
equal deleted inserted replaced
206:80f602e6ae8a 207:15a89eeff66f
1 #!/bin/sh 1 #!/bin/sh
2 2
3 here=`readlink -f "$0"` 3 here=`readlink -f "$0"`
4 repo_root=`dirname "$here"` 4 repo_root=`dirname "$here"`
5 5
6 if !( hg --version -q | grep -e 'version 2\.[1-9]' ); then 6 if !( hg --version -q | grep -qe 'version 2\.[1-9]' ); then
7 echo 'You need mercurial 2.1 or later' >&2 7 echo 'You need mercurial 2.1 or later' >&2
8 exit 2 8 exit 2
9 fi 9 fi
10 10
11 11