Skip to content

Commit a7109e8

Browse files
userFRMclaude
andcommitted
fix: skip arch annotation on sources that already have one
The sed command was corrupting microsoft-prod.list which already has [arch=...] annotations, producing malformed double-bracket entries. Only modify lines without an existing arch spec. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e6ca839 commit a7109e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
if: matrix.cross
4646
run: |
4747
sudo dpkg --add-architecture arm64
48-
sudo sed -i 's/^deb /deb [arch=amd64] /' /etc/apt/sources.list.d/*.list
48+
sudo sed -i '/\[arch=/!s/^deb /deb [arch=amd64] /' /etc/apt/sources.list.d/*.list 2>/dev/null || true
4949
echo "deb [arch=arm64] http://ports.ubuntu.com/ $(lsb_release -cs) main restricted universe" | sudo tee /etc/apt/sources.list.d/arm64.list
5050
echo "deb [arch=arm64] http://ports.ubuntu.com/ $(lsb_release -cs)-updates main restricted universe" | sudo tee -a /etc/apt/sources.list.d/arm64.list
5151
sudo apt-get update

0 commit comments

Comments
 (0)