]> Zhao Yanbai Git Server - minix.git/commitdiff
small fix
authorBen Gras <ben@minix3.org>
Wed, 18 Jan 2006 13:26:50 +0000 (13:26 +0000)
committerBen Gras <ben@minix3.org>
Wed, 18 Jan 2006 13:26:50 +0000 (13:26 +0000)
tools/mkboot

index 50235e5296745e5a6c4fd983e831547293bea0c6..003085099e167c41eea668d80e573c5337f45e97 100755 (executable)
@@ -65,9 +65,15 @@ hdboot)
        version=`sed 's/["      ]//g;/^$/d' </tmp/mkb.$$`
 
        revision=`cat revision 2>/dev/null`
+
+       if [ -z "$revision" ]
+       then    rrevision=""
+       else    rrevision=r$revision
+       fi
+
        oldrev=$revision
+
        target="${version}r${revision}"
-       rrevision=r$revision
 
        if [ -z "$revision" ]
        then
@@ -82,6 +88,7 @@ hdboot)
                        exit 0
                fi
                revision=`expr $revision + 1`
+               rrevision=r$revision
        fi
        target="${version}${rrevision}"