From add6886d09b42bb1236d8afd629465d191221e80 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Thu, 2 May 2024 16:46:08 +0200 Subject: [PATCH] cd_get_string --- cd.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cd.sh b/cd.sh index 79ebce9..3161651 100644 --- a/cd.sh +++ b/cd.sh @@ -324,6 +324,10 @@ local variable="${1}" exit 2 } +cd_get_string () { + [ "${1}" ] && echo "${1}" | cut -d "=" -f 2 | cut -d "\"" -f 2 +} + cd_install_package () { if [ "${1}" ] ; then case "${CD_OS_NAME}" in