cases
This commit is contained in:
parent
3a5a670311
commit
736a0174ed
1 changed files with 39 additions and 42 deletions
9
pidd.sh
9
pidd.sh
|
@ -74,15 +74,12 @@ pidd_set_environment_variables() {
|
|||
case "${PIDD_OS_ID}" in
|
||||
"${PIDD_OS_ALMA}" | "${PIDD_OS_ARCH}" | "${PIDD_OS_FEDORA}" | "${PIDD_OS_ROCKY}")
|
||||
PIDD_OS_VERSION=$(pidd_grep_os VERSION_ID \
|
||||
| sed "s|^\([0-9]\+\)\..*|\1|")
|
||||
;;
|
||||
| sed "s|^\([0-9]\+\)\..*|\1|") ;;
|
||||
"${PIDD_OS_ALPINE}")
|
||||
PIDD_OS_VERSION=$(pidd_grep_os VERSION_ID \
|
||||
| sed "s|^\([0-9]\+\.[0-9]\+\)\..*|\1|")
|
||||
;;
|
||||
| sed "s|^\([0-9]\+\.[0-9]\+\)\..*|\1|") ;;
|
||||
"${PIDD_OS_DEBIAN}" | "${PIDD_OS_UBUNTU}")
|
||||
PIDD_OS_VERSION="$(pidd_grep_os VERSION_CODENAME)"
|
||||
;;
|
||||
PIDD_OS_VERSION="$(pidd_grep_os VERSION_CODENAME)" ;;
|
||||
*) ;;
|
||||
esac
|
||||
# check operating system version
|
||||
|
|
Loading…
Reference in a new issue