mv
This commit is contained in:
parent
8509573360
commit
721ee6f6f2
1 changed files with 12 additions and 8 deletions
20
spcd/main.sh
20
spcd/main.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue