Date: Fri, 1 Jun 2018 16:20:33 +0000 (UTC) From: Mathieu Arnold <mat@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r471267 - head/Mk/Scripts Message-ID: <201806011620.w51GKXAG003840@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mat Date: Fri Jun 1 16:20:33 2018 New Revision: 471267 URL: https://svnweb.freebsd.org/changeset/ports/471267 Log: SC2198: Arrays don't work as operands in [ ]. Use a loop (or concatenate with * instead of @). Array expansions become a series of words in [ .. ]. Operators expect single words only. PR: 227109 Submitted by: mat Sponsored by: Absolight Modified: head/Mk/Scripts/checksum.sh (contents, props changed) Modified: head/Mk/Scripts/checksum.sh ============================================================================== --- head/Mk/Scripts/checksum.sh Fri Jun 1 16:20:29 2018 (r471266) +++ head/Mk/Scripts/checksum.sh Fri Jun 1 16:20:33 2018 (r471267) @@ -87,7 +87,7 @@ if [ -f "${dp_DISTINFO_FILE}" ]; then if [ "$OK" != "true" ]; then exit 1 fi -elif [ -n "${@}" ]; then +elif [ -n "${*}" ]; then ${dp_ECHO_MSG} "=> No checksum file (${dp_DISTINFO_FILE})." exit 1 fi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806011620.w51GKXAG003840>