Move get-maintainers to functions

This commit is contained in:
Ryan Schmidt
2018-03-07 06:39:46 -06:00
parent a8b2986869
commit e060d60a99
3 changed files with 8 additions and 16 deletions
+8
View File
@@ -203,3 +203,11 @@ failcache_failure() {
mkdir -p "${option_failcache_dir}"
echo "${BUILDBOT_BUILDURL:-unknown}" > "${option_failcache_dir}/${key}"
}
get-maintainers() {
# 'username@macports.org github_username' => 'username@macports.org'
# $option_prefix is set in mpbb
# shellcheck disable=SC2154
"${option_prefix}/bin/port" info --index --maintainers --line "$@" \
| tr ', ' '\n' | fgrep '@' | tr '\n' ',' | sed 's/,$//'
}
-8
View File
@@ -17,14 +17,6 @@ Run \`$prog help' for global options and a list of other subcommands.
EOF
}
get-maintainers() {
# 'username@macports.org github_username' => 'username@macports.org'
# $option_prefix is set in mpbb
# shellcheck disable=SC2154
"${option_prefix}/bin/port" info --index --maintainers --line "$@" \
| tr ', ' '\n' | fgrep '@' | tr '\n' ',' | sed 's/,$//'
}
install-dependencies() {
local port=${1-}
if [[ -z $port ]]; then
-8
View File
@@ -17,14 +17,6 @@ Run \`$prog help' for global options and a list of other subcommands.
EOF
}
get-maintainers() {
# 'username@macports.org github_username' => 'username@macports.org'
# $option_prefix is set in mpbb
# shellcheck disable=SC2154
"${option_prefix}/bin/port" info --index --maintainers --line "$@" \
| tr ', ' '\n' | fgrep '@' | tr '\n' ',' | sed 's/,$//'
}
install-port() {
local port=${1-}
if [[ -z $port ]]; then