---
 src/get-git-head | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100755 src/get-git-head

diff --git a/src/get-git-head b/src/get-git-head
new file mode 100755
index 0000000..8c2a434
--- /dev/null
+++ b/src/get-git-head
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+HEAD=`git rev-parse HEAD 2> /dev/null`
+if [ $? -ne 0 ]; then
+    echo ""
+    RET=1
+else
+    echo +${HEAD}
+    RET=0
+fi
+
+exit $RET
-- 
1.7.11.4

_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to