This commit is contained in:
Marc Beninca 2024-08-25 19:28:31 +02:00
parent 8509573360
commit 721ee6f6f2
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -910,6 +910,18 @@ spcd_git_url() {
fi fi
} }
# ╭───────────┬────╮
# │ functions │ os │
# ╰───────────┴────╯
spcd_grep_os() {
spcd_grep_os__variable="${1}"
[ -n "${spcd_grep_os__variable}" ] &&
grep "^${spcd_grep_os__variable}=" "/etc/os-release" |
sed "s|^${spcd_grep_os__variable}=||" |
sed "s|^\"\(.*\)\"$|\1|"
}
# ╭───────────┬──────╮ # ╭───────────┬──────╮
# │ functions │ step │ # │ functions │ step │
# ╰───────────┴──────╯ # ╰───────────┴──────╯
@ -958,14 +970,6 @@ spcd_echo() {
fi fi
} }
spcd_grep_os() {
spcd_grep_os__variable="${1}"
[ -n "${spcd_grep_os__variable}" ] &&
grep "^${spcd_grep_os__variable}=" "/etc/os-release" |
sed "s|^${spcd_grep_os__variable}=||" |
sed "s|^\"\(.*\)\"$|\1|"
}
spcd_install_package() { spcd_install_package() {
spcd_install_package__name="${1}" spcd_install_package__name="${1}"
if [ -n "${spcd_install_package__name}" ]; then if [ -n "${spcd_install_package__name}" ]; then