Skip to content

Commit

Permalink
fix(runner-install): correct detection of Ubuntu 24.04
Browse files Browse the repository at this point in the history
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 philips-labs#4245
  • Loading branch information
bdellegrazie committed Nov 16, 2024
1 parent cf6dd34 commit 0dad4f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/runners/templates/install-runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ tar xzf ./$file_name
echo "Delete tar file"
rm -rf $file_name

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

# Install libicu on non-ubuntu
Expand Down

0 comments on commit 0dad4f7

Please sign in to comment.