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