svn commit: r471267 - head/Mk/Scripts
Mathieu Arnold
mat at FreeBSD.org
Fri Jun 1 16:20:36 UTC 2018
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
More information about the svn-ports-all
mailing list