diff --git a/cd.sh b/cd.sh index f255508..5f31937 100644 --- a/cd.sh +++ b/cd.sh @@ -340,7 +340,7 @@ cd_grep_os () { local variable="${1}" if [ "${variable}" ] ; then grep "^${variable}=" "/etc/os-release" \ - | sed "s|^${variable}||" \ + | sed "s|^${variable}=||" \ | sed "s|^\"\(.*\)\"$|\1|" fi }