small fix
This commit is contained in:
parent
c806c7ba7c
commit
d62732171a
1 changed files with 8 additions and 1 deletions
|
@ -65,9 +65,15 @@ hdboot)
|
||||||
version=`sed 's/[" ]//g;/^$/d' </tmp/mkb.$$`
|
version=`sed 's/[" ]//g;/^$/d' </tmp/mkb.$$`
|
||||||
|
|
||||||
revision=`cat revision 2>/dev/null`
|
revision=`cat revision 2>/dev/null`
|
||||||
|
|
||||||
|
if [ -z "$revision" ]
|
||||||
|
then rrevision=""
|
||||||
|
else rrevision=r$revision
|
||||||
|
fi
|
||||||
|
|
||||||
oldrev=$revision
|
oldrev=$revision
|
||||||
|
|
||||||
target="${version}r${revision}"
|
target="${version}r${revision}"
|
||||||
rrevision=r$revision
|
|
||||||
|
|
||||||
if [ -z "$revision" ]
|
if [ -z "$revision" ]
|
||||||
then
|
then
|
||||||
|
@ -82,6 +88,7 @@ hdboot)
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
revision=`expr $revision + 1`
|
revision=`expr $revision + 1`
|
||||||
|
rrevision=r$revision
|
||||||
fi
|
fi
|
||||||
target="${version}${rrevision}"
|
target="${version}${rrevision}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue