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.
This commit is contained in:
junyoung 2008-09-21 06:20:07 +00:00
parent 39434e7052
commit 7af93d757a
1 changed files with 2 additions and 2 deletions

View File

@ -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.