Skip to content

Add macOS support (fix grep, sed, and bash 3.2 compatibility) - #45

Open
kylefmohr wants to merge 1 commit into
ax:mainfrom
kylefmohr:macos-support
Open

kylefmohr wants to merge 1 commit into
ax:mainfrom
kylefmohr:macos-support

Conversation

@kylefmohr

Copy link
Copy Markdown

This PR updates apk.sh to fully support macOS (Darwin) environments while maintaining Linux compatibility. I replaced all instances of GNU-specific grep -P with standard perl one-liners to handle look-behind regexes cross-platform, and normalized sed -i usage to account for BSD/GNU syntax differences. Additionally, the script now uses POSIX-compliant loops instead of readarray to support the default macOS Bash 3.2, alongside new dependency checks for wget and xz.

@ax

ax commented Jun 26, 2026

Copy link
Copy Markdown
Owner

I'll check this asap. Thank you.

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