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

Fix sed commands to work on MacOS #17

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

zzambers
Copy link
Collaborator

@zzambers zzambers commented Nov 7, 2023

MacOS(/BSD?) have different interpretation of -i switch. Mac expects backup suffix as separate arg (-i suffix), while gnu sed (linux) expects it to directly follow (-isuffix ; no suffix -> no backup). This causes sed to fail on MacOS in some configurations (not in basic one currently tested in GHA):
sed: 1: "build/java-bc-2nd-conf/ ...": undefined label 'uild/java-bc-2nd-conf/java.security'

Workaround changes set -i to sed -i -e. It makes no difference on linux and generates backup with -e suffix on Mac (which does not matter).

@judovana
Copy link
Collaborator

judovana commented Nov 7, 2023

sounds very correct to me. ty!

@zzambers zzambers merged commit 2417895 into rh-openjdk:master Nov 7, 2023
41 checks passed
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