This script has no excuse for ever failing: set -e

This commit is contained in:
bjh21 2002-04-02 13:17:41 +00:00
parent 9597ab134f
commit ee7cd026e8
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#! /bin/sh -
#
# $NetBSD: newvers_rm.sh,v 1.2 2002/04/02 13:14:43 bjh21 Exp $
# $NetBSD: newvers_rm.sh,v 1.3 2002/04/02 13:17:41 bjh21 Exp $
#
# Copyright (c) 2000 The NetBSD Foundation, Inc.
# All rights reserved.
@ -42,6 +42,8 @@
# Called as:
# sh newvers_rm.sh VERSION_FILE MODULENAME
set -e
r=`awk -F: '$1 ~ /^[0-9.]*$/ { it = $1; } END { print it }' $1`
r=`echo $r | sed 's/\.\([0-9]\)$/.0\1/'`