fix btrfs-progs version script

btrfs-progs-0.16.tar.bz2 seems to be distributed w/o an .hg,
which make the version.sh script go bonk.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
---
master
Eric Sandeen 2008-08-06 12:17:01 -04:00 committed by David Woodhouse
parent 3c6e5b165d
commit e7e7bb1727
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@
v="Btrfs v0.16"
which hg > /dev/null
if [ $? == 0 ]; then
if [ $? == 0 -a -d .hg ]; then
last=$(hg tags | grep -m1 -o '^v[0-9.]\+')
# now check if the repo has commits since then...