This commit is contained in:
Marc Beninca 2024-06-24 12:10:28 +02:00
parent bc7498fba2
commit db2092a251
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -700,9 +700,9 @@ pidd_error_os() {
pidd_grep_os() { pidd_grep_os() {
pidd_grep_os__variable="${1}" pidd_grep_os__variable="${1}"
if [ -n "${pidd_grep_os__variable}" ]; then if [ -n "${pidd_grep_os__variable}" ]; then
grep "^${pidd_grep_os__variable}=" "/etc/os-release" \ grep "^${pidd_grep_os__variable}=" "/etc/os-release" |
| sed "s|^${pidd_grep_os__variable}=||" \ sed "s|^${pidd_grep_os__variable}=||" |
| sed "s|^\"\(.*\)\"$|\1|" sed "s|^\"\(.*\)\"$|\1|"
fi fi
} }
@ -749,7 +749,7 @@ pidd_openssl() {
openssl x509 \ openssl x509 \
-in "${pidd_openssl__file}" \ -in "${pidd_openssl__file}" \
-noout -text || -noout -text ||
exit exit
fi fi
} }