[151469] contrib/mp-buildbot/mpbb
cal at macports.org
cal at macports.org
Tue Aug 16 14:22:50 PDT 2016
Revision: 151469
https://trac.macports.org/changeset/151469
Author: cal at macports.org
Date: 2016-08-16 14:22:50 -0700 (Tue, 16 Aug 2016)
Log Message:
-----------
mp-buildbot: Fix/disable some shellcheck warnings
Modified Paths:
--------------
contrib/mp-buildbot/mpbb
Modified: contrib/mp-buildbot/mpbb
===================================================================
--- contrib/mp-buildbot/mpbb 2016-08-16 21:09:14 UTC (rev 151468)
+++ contrib/mp-buildbot/mpbb 2016-08-16 21:22:50 UTC (rev 151469)
@@ -14,6 +14,7 @@
option_default_svn_revision=HEAD
option_default_svn_url=https://svn.macports.org/repository/macports/trunk
option_default_workdir=${PWD:-/tmp/mp-buildbot}
+
option_archive_site=$option_default_archive_site
option_help=$option_default_help
option_port=$option_default_port
@@ -83,7 +84,7 @@
printf >&2 "\nCOMMANDS\n"
for command in "${commands[@]}"; do
printf >&2 " %s\n" "$command"
- printf " %s\n\n" "$(${command}-help | tr '\n' ' ')" | fmt -w $(( cols - 8 )) >&2
+ printf " %s\n\n" "$("${command}-help" | tr '\n' ' ')" | fmt -w $(( cols - 8 )) >&2
done
exit 2
@@ -93,6 +94,9 @@
commands=()
thisdir=$(cd "$(dirname "$0")" && pwd)
for cmdfile in "$thisdir/mpbb-"*; do
+ # Unfortunately ShellCheck does not currently support following multiple
+ # files, so we'll just disable the warning.
+ # shellcheck disable=SC1090
. "$cmdfile"
commands+=(${cmdfile#$thisdir/mpbb-})
done
@@ -118,6 +122,11 @@
case "$key" in
--*)
+ # Shellcheck doesn't see the invocations in the sourced
+ # scripts, so we'll have to disable a number of false
+ # positives here.
+
+ # shellcheck disable=SC2034
case "$key" in
--archive-site)
option_archive_site=$2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160816/435a8dcc/attachment.html>
More information about the macports-changes
mailing list