From c2459552e35fe743effc66f389662c2d835712ca Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 9 Sep 2024 01:09:19 +0200 Subject: [PATCH] f/pkg --- spcd/bootstrap.sh | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index ee0a381..d12e5e5 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -954,6 +954,20 @@ spcd_f_git_url() { fi } +# ╭───┬───────────────╮ +# │ f │ pkg = package │ +# ╰───┴───────────────╯ + +spcd_f_pkg_dos2unix() { + spcd_step "Install dos2unix" + spcd_f_pm_pkg_install "dos2unix" +} + +spcd_f_pkg_git() { + spcd_step "Install Git" + spcd_f_pm_pkg_install "git" +} + # ╭───┬──────────────────────╮ # │ f │ pm = package manager │ # ╰───┴──────────────────────╯ @@ -1542,20 +1556,6 @@ Dir::Etc::SourceParts \"\"; esac } -# ╭───┬──────────╮ -# │ s │ packages │ -# ╰───┴──────────╯ - -spcd_step__packages_install_dos2unix() { - spcd_step "Install dos2unix" - spcd_f_pm_pkg_install "dos2unix" -} - -spcd_step__packages_install_git() { - spcd_step "Install Git" - spcd_f_pm_pkg_install "git" -} - # ╭──────╮ # │ main │ # ╰──────╯ @@ -1605,8 +1605,8 @@ spcd_main() { spcd_f_pm_https_verify spcd_f_pm_pkg_update spcd_f_pm_pkg_upgrade - spcd_step__packages_install_dos2unix - spcd_step__packages_install_git + spcd_f_pkg_dos2unix + spcd_f_pkg_git spcd_step_out # python spcd_step_in "Python"