fix btrfs-progs version script
authorEric Sandeen <sandeen@redhat.com>
Wed, 6 Aug 2008 16:17:01 +0000 (12:17 -0400)
committerDavid Woodhouse <dwmw2@hera.kernel.org>
Wed, 6 Aug 2008 16:17:01 +0000 (12:17 -0400)
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>
---

version.sh

index 5fcf34e..d7988bf 100644 (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...