changeset 18624:06c236dd604b

avoid usage of head -1/head -n 1 and use sed 1q instead
author ivo
date Wed, 07 Jun 2006 15:03:25 +0000
parents 960cd1af26f2
children dea3a68e2589
files version.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/version.sh	Wed Jun 07 14:43:34 2006 +0000
+++ b/version.sh	Wed Jun 07 15:03:25 2006 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-revision=r`grep committed-rev .svn/entries | head -n 1 | cut -d '"' -f 2 2>/dev/null`
+revision=r`grep committed-rev .svn/entries | sed 1q | cut -d '"' -f 2 2>/dev/null`
 
 extra=""
 if test "$1" ; then