From 204dfd0de6e57670623443ddcc78a136d91b5bbc Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 4 May 2024 09:26:45 +0200 Subject: [PATCH] version/major --- cd.sh | 3 ++- readme.md | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cd.sh b/cd.sh index b7c7e02..11b2f2c 100644 --- a/cd.sh +++ b/cd.sh @@ -352,7 +352,8 @@ local variable="${1}" if [ "${variable}" ] ; then grep "^${variable}=" "/etc/os-release" \ | sed "s|^${variable}=||" \ - | sed "s|^\"\(.*\)\"$|\1|" + | sed "s|^\"\(.*\)\"$|\1|" \ + | sed "s|^\([0-9]\+\)\..*|\1|" fi } diff --git a/readme.md b/readme.md index 51e54e5..a6d5328 100644 --- a/readme.md +++ b/readme.md @@ -39,4 +39,3 @@ from various CA, CI, OCI / OS. * first list working directory * integrate project repository cloning * override repository and framework locations -* reduce operating system version to major