Skip to content

Commit 453d8a0

Browse files
committed
Use tee instead of cat due to sudo only applying to cat and not the subsequent write
1 parent 1078201 commit 453d8a0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sources/SDL/Native/build-linux-arm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if [[ ! -z ${GITHUB_ACTIONS+x} ]]; then
88
export PATH="$PATH:$(readlink -f "../../../eng/native/buildsystem/zig")"
99

1010
# Enable ports repository
11-
sudo cat <<EOF > /etc/apt/sources.list.d/ubuntu-ports.sources
11+
sudo tee /etc/apt/sources.list.d/ubuntu-ports.sources <<EOF
1212
Types: deb
1313
URIs: http://ports.ubuntu.com/ubuntu-ports/
1414
Suites: noble noble-updates noble-backports noble-security

sources/SDL/Native/build-linux-arm64.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if [[ ! -z ${GITHUB_ACTIONS+x} ]]; then
88
export PATH="$PATH:$(readlink -f "../../../eng/native/buildsystem/zig")"
99

1010
# Enable ports repository
11-
sudo cat <<EOF > /etc/apt/sources.list.d/ubuntu-ports.sources
11+
sudo tee /etc/apt/sources.list.d/ubuntu-ports.sources <<EOF
1212
Types: deb
1313
URIs: http://ports.ubuntu.com/ubuntu-ports/
1414
Suites: noble noble-updates noble-backports noble-security

0 commit comments

Comments
 (0)