diff options
Diffstat (limited to 'mk')
-rwxr-xr-x | mk/checksum/checksum | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/mk/checksum/checksum b/mk/checksum/checksum index 9f4d7b4b418..4255f9d5d52 100755 --- a/mk/checksum/checksum +++ b/mk/checksum/checksum @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: checksum,v 1.5 2006/07/13 16:23:14 jlam Exp $ +# $NetBSD: checksum,v 1.6 2006/07/13 16:44:14 jlam Exp $ # # Copyright (c) 2006 The NetBSD Foundation, Inc. # All rights reserved. @@ -115,7 +115,6 @@ if ${TEST} -z "$digestcmd"; then exit 1 fi -${CAT} $distinfo | { exitcode=0 while read d_alg d_file d_equals d_checksum; do case "$d_alg" in @@ -133,7 +132,7 @@ ${CAT} $distinfo | ${TEST} -n "$tmp" || eval "_alg_${d_alg}=\"$files\"" d_file="${d_file#\(}"; d_file="${d_file%\)}" - for file in "$files"; do + for file in $files; do ${TEST} "$d_file" = "$file" || continue eval "tmp=\"\$_alg_${d_alg}\"" @@ -177,4 +176,4 @@ ${CAT} $distinfo | done fi fi - exit $exitcode; } + exit $exitcode; } < $distinfo |