summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>2001-12-04 00:05:11 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>2001-12-04 00:05:11 +0000
commitbdfacc1384952d9f1095b2512c391b6dd89f1cb2 (patch)
treeac0da8dc33e2c7a7ca1994778b970ec60d79323b /sys
parent9bf62191c2a2e2d5aeb7537858d4a8164ea9ebcc (diff)
Do not fail on an existing but empty version file
Diffstat (limited to 'sys')
-rw-r--r--sys/conf/newvers.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/conf/newvers.sh b/sys/conf/newvers.sh
index 7b9c0ca528a..6cf195cac66 100644
--- a/sys/conf/newvers.sh
+++ b/sys/conf/newvers.sh
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $OpenBSD: newvers.sh,v 1.36 2001/10/24 03:05:53 deraadt Exp $
+# $OpenBSD: newvers.sh,v 1.37 2001/12/04 00:05:10 niklas Exp $
# $NetBSD: newvers.sh,v 1.17.2.1 1995/10/12 05:17:11 jtc Exp $
#
# Copyright (c) 1984, 1986, 1990, 1993
@@ -36,7 +36,7 @@
#
# @(#)newvers.sh 8.1 (Berkeley) 4/20/94
-if [ ! -r version ]
+if [ ! -r version -o ! -s version ]
then
echo 0 > version
fi