diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index d3e89a1..ccea737 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -221,10 +221,10 @@ spcd_openssl_x509() { # ╰───────────┴────╯ spcd_os_grep() { - spcd_os_grep__variable="${1}" - [ -n "${spcd_os_grep__variable}" ] && - grep "^${spcd_os_grep__variable}=" "/etc/os-release" | - sed "s|^${spcd_os_grep__variable}=||" | + local variable="${1}" + [ -n "${variable}" ] && + grep "^${variable}=" "/etc/os-release" | + sed "s|^${variable}=||" | sed "s|^\"\(.*\)\"$|\1|" }