From 7af93d757a55bfd929b06713a2b8050973a57627 Mon Sep 17 00:00:00 2001 From: junyoung Date: Sun, 21 Sep 2008 06:20:07 +0000 Subject: [PATCH] Fix 'arith: syntax error: " N_SRC_ARGS + 1 "' error which occurs with the Debian default shell ("dash"). Now cross-build works again on Ubuntu 7.10. --- usr.sbin/postinstall/postinstall | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/postinstall/postinstall b/usr.sbin/postinstall/postinstall index 131d9b5f8311..b71286c3096b 100755 --- a/usr.sbin/postinstall/postinstall +++ b/usr.sbin/postinstall/postinstall @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: postinstall,v 1.69 2008/09/14 17:25:59 apb Exp $ +# $NetBSD: postinstall,v 1.70 2008/09/21 06:20:07 junyoung Exp $ # # Copyright (c) 2002-2008 The NetBSD Foundation, Inc. # All rights reserved. @@ -1317,7 +1317,7 @@ main() case "${ch}" in s) qarg="$(shell_quote "${OPTARG}")" - N_SRC_ARGS=$(( N_SRC_ARGS + 1 )) + N_SRC_ARGS=$(( $N_SRC_ARGS + 1 )) SRC_ARGLIST="${SRC_ARGLIST}${SRC_ARGLIST:+ }-s ${qarg}" if [ -f "${OPTARG}" ]; then # arg refers to a *.tgz file.