mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-29 18:20:03 -04:00
CI: Install gawk on fedora > 41
This commit is contained in:
parent
4924bc877f
commit
73b42dd08b
1 changed files with 7 additions and 0 deletions
7
.github/os_detect.sh
vendored
7
.github/os_detect.sh
vendored
|
|
@ -1,10 +1,17 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
. /etc/os-release
|
||||
|
||||
# workaround for really bare-bones Archlinux containers:
|
||||
if [ -x "$(command -v pacman)" ]; then
|
||||
pacman --noconfirm -Sy
|
||||
pacman --noconfirm -S grep gawk sed
|
||||
fi
|
||||
|
||||
if [ ${ID} == "fedora" -a ${VERSION_ID} -gt 41 ]; then
|
||||
dnf install -y gawk
|
||||
fi
|
||||
|
||||
os_release_file=
|
||||
if [ -s "/etc/os-release" ]; then
|
||||
os_release_file="/etc/os-release"
|
||||
|
|
|
|||
Loading…
Reference in a new issue