summaryrefslogtreecommitdiffstats
path: root/.github/os_detect.sh
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-08-11 21:54:05 +0200
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-08-11 21:54:05 +0200
commit7382fa90f84d38cd2ae08c880e9ed6a4ad644d35 (patch)
treee367f424cfb94bd6730e196916a96a9725e61c27 /.github/os_detect.sh
parentfb39f96ac6f72bb56d17f3e8694134dfea9186e9 (diff)
parent1dfb5a0c10881b43cb60cf93bab63648c61201b5 (diff)
downloadmonitoring-plugins-7382fa90.tar.gz
Merge branch 'master' into refactor/check_users
Diffstat (limited to '.github/os_detect.sh')
-rw-r--r--.github/os_detect.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/.github/os_detect.sh b/.github/os_detect.sh
index ee9c145d..47c762d3 100644
--- a/.github/os_detect.sh
+++ b/.github/os_detect.sh
@@ -1,10 +1,17 @@
1#!/bin/sh -e 1#!/bin/sh -e
2
3. /etc/os-release
4
2# workaround for really bare-bones Archlinux containers: 5# workaround for really bare-bones Archlinux containers:
3if [ -x "$(command -v pacman)" ]; then 6if [ -x "$(command -v pacman)" ]; then
4 pacman --noconfirm -Sy 7 pacman --noconfirm -Sy
5 pacman --noconfirm -S grep gawk sed 8 pacman --noconfirm -S grep gawk sed
6fi 9fi
7 10
11if [ ${ID} == "fedora" -a ${VERSION_ID} -gt 41 ]; then
12 dnf install -y gawk
13fi
14
8os_release_file= 15os_release_file=
9if [ -s "/etc/os-release" ]; then 16if [ -s "/etc/os-release" ]; then
10 os_release_file="/etc/os-release" 17 os_release_file="/etc/os-release"