Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1a3f5d04 authored by Chris Mason's avatar Chris Mason
Browse files

Btrfs: Fix version.sh when used outside of an hg repo

parent 017e5369
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -6,10 +6,10 @@
# Copyright 2008, Oracle
# Released under the GNU GPLv2
 
v="Btrfs v0.15"
v="v0.15"

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