seds
This commit is contained in:
parent
6e4692cb37
commit
3df6f15f0e
1 changed files with 8 additions and 5 deletions
13
pidd.sh
13
pidd.sh
|
@ -73,13 +73,16 @@ pidd_set_environment_variables() {
|
||||||
# set operating system version
|
# set operating system version
|
||||||
case "${PIDD_OS_ID}" in
|
case "${PIDD_OS_ID}" in
|
||||||
"${PIDD_OS_ALMA}" | "${PIDD_OS_ARCH}" | "${PIDD_OS_FEDORA}" | "${PIDD_OS_ROCKY}")
|
"${PIDD_OS_ALMA}" | "${PIDD_OS_ARCH}" | "${PIDD_OS_FEDORA}" | "${PIDD_OS_ROCKY}")
|
||||||
PIDD_OS_VERSION=$(pidd_grep_os VERSION_ID \
|
PIDD_OS_VERSION=$(pidd_grep_os VERSION_ID |
|
||||||
| sed "s|^\([0-9]\+\)\..*|\1|") ;;
|
sed "s|^\([0-9]\+\)\..*|\1|")
|
||||||
|
;;
|
||||||
"${PIDD_OS_ALPINE}")
|
"${PIDD_OS_ALPINE}")
|
||||||
PIDD_OS_VERSION=$(pidd_grep_os VERSION_ID \
|
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_DEBIAN}" | "${PIDD_OS_UBUNTU}")
|
||||||
PIDD_OS_VERSION="$(pidd_grep_os VERSION_CODENAME)" ;;
|
PIDD_OS_VERSION="$(pidd_grep_os VERSION_CODENAME)"
|
||||||
|
;;
|
||||||
*) ;;
|
*) ;;
|
||||||
esac
|
esac
|
||||||
# check operating system version
|
# check operating system version
|
||||||
|
|
Loading…
Reference in a new issue