Skip to content

Commit

Permalink
Configure MacPorts with implicite parameter file
Browse files Browse the repository at this point in the history
  • Loading branch information
foretspaisibles committed Sep 17, 2023
1 parent 46234bd commit 0c54eed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion configure_macports
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
github_owner='macports'
github_repo='macports-base'

parameterfile='.github/parameters/gha-install-macports.yaml'
parameterfile='.github/parameters/setup-macports.yaml'
parameterfile_compat='.github/parameters/gha-install-macports.yaml'

usage()
{
Expand Down Expand Up @@ -87,6 +88,9 @@ main()
parameterfile="$1"
elif [ "$1" = ':no-value' -a -f "${parameterfile}" -a -r "${parameterfile}" ]; then
wlog 'Info' 'Use parameter file \047%s\047.' "${parameterfile}"
elif [ "$1" = ':no-value' -a -f "${parameterfile_compat}" -a -r "${parameterfile_compat}" ]; then
wlog 'Info' 'Use parameter file \047%s\047.' "${parameterfile_compat}"
parameterfile="${parameterfile_compat}"
else
parameterfile=':no-value'
fi
Expand Down

0 comments on commit 0c54eed

Please sign in to comment.