substitue non-portable tail command with sed.

This commit is contained in:
Simon Kelley
2012-04-16 15:07:48 +01:00
parent 2f77797b17
commit 7389ce7ff5

View File

@@ -18,7 +18,7 @@ else
vers=`cat $1/VERSION | sed 's/[(), ]/,/ g' | tr ',' '\n' | grep $v[0-9]` vers=`cat $1/VERSION | sed 's/[(), ]/,/ g' | tr ',' '\n' | grep $v[0-9]`
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo "${vers}" | head -n 1 | tail -c +2 echo "${vers}" | head -n 1 | sed 's/^v//'
else else
cat $1/VERSION cat $1/VERSION
fi fi