Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
paranext
setup-macports
Repository navigation
Code
Pull requests
4
(4)
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
setup-macports
/
validate_configuration
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
executable file
·
77 lines (61 loc) · 1.53 KB
main
Breadcrumbs
setup-macports
/
validate_configuration
Copy path
Top
File metadata and controls
Code
Blame
executable file
·
77 lines (61 loc) · 1.53 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!
/bin/sh
#
validate_configuration — Validate Configuration
#
Paranext Actions (https://github.com/paranext/setup-macports)
#
This file is part of Paranext Actions.
#
#
Copyright © 2022–2023 Michaël Le Barbier (original author)
#
Copyright © 2025 SIL Global and United Bible Societies (subsequent changes)
#
All rights reserved.
#
This file must be used under the terms of the MIT License.
#
This source file is licensed as described in the file LICENSE, which
#
you should have received as part of this distribution. The terms
#
are also available at https://opensource.org/licenses/MIT
wlog
()
{
{
printf
'
%s:
'
"
$1
"
shift
printf
"
$@
"
printf
'
\n
'
}
1>&2
}
failwith
()
{
local
OPTIND OPTION OPTARG status
status=1
OPTIND=1
while
getopts
'
x:
'
OPTION
;
do
case
${OPTION}
in
x) status=
"
${OPTARG}
"
;;
*
)
1>&2
printf
'
failwith: %s: Unsupported option.\n
'
"
${OPTION}
"
;;
esac
done
shift
$(
expr
${OPTIND}
- 1
)
case
"
$1
"
in
[0-9][0-9][0-9]|[0-9][0-9]|[0-9])
status=
"
$1
"
shift
;;
*
)
:
esac
wlog
'
Error
'
"
$@
"
exit
"
${status}
"
}
main
()
{
if
[
"
$#
"
-ne
1 ]
;
then
failwith
'
Exactly one argument is required.
'
fi
if
[
"
$1
"
=
'
:no-value
'
]
;
then
return
0
fi
if
[
!
-f
"
$1
"
]
;
then
failwith
'
The pathname \047%s\047 does not designate a regular file.
'
"
$1
"
fi
if
[
!
-r
"
$1
"
]
;
then
failwith
'
The pathname \047%s\047 does not designate a readable file.
'
"
$1
"
fi
}
main
"
$@
"
#
End of file `validate_configuration'
You can’t perform that action at this time.