[151470] contrib/mp-buildbot/mpbb-checkout
cal at macports.org
cal at macports.org
Tue Aug 16 14:29:47 PDT 2016
Revision: 151470
https://trac.macports.org/changeset/151470
Author: cal at macports.org
Date: 2016-08-16 14:29:47 -0700 (Tue, 16 Aug 2016)
Log Message:
-----------
mp-buildbot: checkout: Hide SC false positives
Most of the warnings emitted by ShellCheck don't apply because ShellCheck isn't
aware that this script is sourced from mpbb.
Modified Paths:
--------------
contrib/mp-buildbot/mpbb-checkout
Modified: contrib/mp-buildbot/mpbb-checkout
===================================================================
--- contrib/mp-buildbot/mpbb-checkout 2016-08-16 21:22:50 UTC (rev 151469)
+++ contrib/mp-buildbot/mpbb-checkout 2016-08-16 21:29:47 UTC (rev 151470)
@@ -14,10 +14,17 @@
}
checkout() {
+ # $option_workdir is set in mpbb, which sources this script
+ # shellcheck disable=SC2154
dports_svn=${option_workdir}/dports
tools_svn=${option_workdir}/tools
+ # $option_svn is set in mpbb
+ # shellcheck disable=SC2154
svn=${option_svn}
+ # $option_svn_url and $option_svn_revision are set in mpbb
+ # shellcheck disable=SC2154
svn_url=${option_svn_url}
+ # shellcheck disable=SC2154
svn_rev=${option_svn_revision}
if [[ -d "${tools_svn}/.svn" ]] ; then
@@ -53,6 +60,8 @@
"${dports_svn}" || return $?
fi
+ # $option_prefix is set in mpbb
+ # shellcheck disable=SC2154
(cd "${dports_svn}" && "${option_prefix}/bin/portindex") || return $?
cat > "${option_workdir}/macports.conf" <<EOF || return $?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160816/35ae9373/attachment-0001.html>
More information about the macports-changes
mailing list