Skip to content

Commit e325de5

Browse files
sinelawclaude
andcommitted
Fix sha256sums replacement for multi-line PKGBUILD arrays
The original PKGBUILD has sha256sums split across multiple lines. Use sed range replacement to handle this correctly. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent cb0f1da commit e325de5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/aur-publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ jobs:
4949
cd aur-repo
5050
sed -i "s/^pkgver=.*/pkgver=${{ steps.version.outputs.version }}/" PKGBUILD
5151
sed -i "s/^pkgrel=.*/pkgrel=1/" PKGBUILD
52-
sed -i 's/^sha256sums=.*/sha256sums=("${{ steps.checksum.outputs.sha256 }}" "SKIP")/' PKGBUILD
52+
# Replace multi-line sha256sums array (handles both single and multi-line formats)
53+
sed -i '/^sha256sums=(/,/)$/c\sha256sums=("${{ steps.checksum.outputs.sha256 }}" "SKIP")' PKGBUILD
5354
echo "Updated PKGBUILD:"
5455
cat PKGBUILD
5556

0 commit comments

Comments
 (0)