This commit is contained in:
Marc Beninca 2024-05-03 13:14:52 +02:00
parent a102db152b
commit 210768479c
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

2
cd.sh
View file

@ -340,7 +340,7 @@ cd_grep_os () {
local variable="${1}" local variable="${1}"
if [ "${variable}" ] ; then if [ "${variable}" ] ; then
grep "^${variable}=" "/etc/os-release" \ grep "^${variable}=" "/etc/os-release" \
| sed "s|^${variable}||" \ | sed "s|^${variable}=||" \
| sed "s|^\"\(.*\)\"$|\1|" | sed "s|^\"\(.*\)\"$|\1|"
fi fi
} }