Skip to content

Commit 5cb7209

Browse files
committed
fix(runner-install): correct detection of Ubuntu 24.04
On Ubuntu 24.04 there is another variable `ID_LIKE` that appears in the `/etc/os-release` file. This change fixes the regex match to only match ID and not ID_LIKE closes github-aws-runners#4245
1 parent 039f5db commit 5cb7209

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/runners/templates/install-runner.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ tar xzf ./$file_name
4242
echo "Delete tar file"
4343
rm -rf $file_name
4444

45-
os_id=$(awk -F= '/^ID/{print $2}' /etc/os-release)
45+
os_id=$(awk -F= '/^ID=/{print $2}' /etc/os-release)
4646
echo OS: $os_id
4747

4848
# Install libicu on non-ubuntu

0 commit comments

Comments
 (0)