Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let pacman-helper.sh run in Linux #566

Merged
merged 3 commits into from
Jul 4, 2024

Conversation

dscho
Copy link
Member

@dscho dscho commented Jul 4, 2024

The idea is of course to help git-for-windows/git-for-windows-automation#86

dscho added 2 commits July 4, 2024 20:18
We already define `CURL_CA_BUNDLE`, that should be enough. Besides, it's
probably no longer true that `mingw-w64-ca-certificates` lag behind
`ca-certificates` in MSYS2 :-)

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
In POSIX-compliant Unix shells, `$((` starts an arithmetic expression
that is ended by `))`.

Bash (being... Bash) allows `$((` not only to be an arithmetic
expression; It can alternatively be a short form of `$( (`, i.e. the
start of a shell expression that is to be executed and then interpolated
by its `stdout` where the shell expression immediately starts by opening
a subshell. Example:

  output="$( (cd / && ls -la) | tee >log.txt )"

This is valid by the POSIX standard; Removing the space between the two
open-parentheses would make it non-standard, where Bash would still run
it as intended but Dash, for example, wouldn't.

Let's allow executing this script using Dash.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
pacman-helper.sh Outdated Show resolved Hide resolved
The idea being: We want to be able to run this script in GitHub
workflows that use the `ubuntu-latest` pool (because the runners in that
pool both start up and run quicker than the ones in the `windows-latest`
pool).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho dscho force-pushed the let-pacman-helper-run-in-linux branch from ae824da to 78ef4e3 Compare July 4, 2024 20:13
@dscho dscho merged commit 90a00a9 into git-for-windows:main Jul 4, 2024
6 checks passed
@dscho dscho deleted the let-pacman-helper-run-in-linux branch July 4, 2024 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants