diff mbox

scripts/mkversion: Simplify script

Message ID 1282165945-27195-1-git-send-email-artagnon@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ramkumar Ramachandra Aug. 18, 2010, 9:12 p.m. UTC
None
diff mbox

Patch

diff --git a/scripts/mkversion b/scripts/mkversion
index c12addc..6fedcb3 100644
--- a/scripts/mkversion
+++ b/scripts/mkversion
@@ -1,6 +1,3 @@ 
-if [ ! -f .version ]
-then
-    echo 1
-else
-    expr 0`cat .version` + 1
-fi
+#!/bin/sh
+
+[ ! -f .version ] && echo 1 || expr 0`cat .version` + 1