summaryrefslogtreecommitdiffstats
path: root/fb
diff options
context:
space:
mode:
Diffstat (limited to 'fb')
-rwxr-xr-xfb7
1 files changed, 6 insertions, 1 deletions
diff --git a/fb b/fb
index 8cdd591..7d5077c 100755
--- a/fb
+++ b/fb
@@ -11,7 +11,12 @@
# Optional: xclip
#----------------------------------------------------
-VERSION="0.6.8.3"
+SCRIPTDIR="`dirname "$0"`"
+VERSION="`cd $SCRIPTDIR; git describe 2>/dev/null | sed 's/^v//'`"
+
+if [ -z "$VERSION" ]; then
+ VERSION="unknown"
+fi
DELETE=
EXTENSION=""