From 6c379fe0a506e4405e3e8d5f3dda4c94cbcd8496 Mon Sep 17 00:00:00 2001 From: Galen Guyer Date: Fri, 5 Aug 2022 12:06:31 -0400 Subject: Install packages, preinstall and install methods, locations --- lib/packages.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lib/packages.sh (limited to 'lib') diff --git a/lib/packages.sh b/lib/packages.sh new file mode 100644 index 0000000..05fac0a --- /dev/null +++ b/lib/packages.sh @@ -0,0 +1,10 @@ +function packages::install() { + case "$(os::distro)" in + "archlinux") + sudo pacman -S --needed $@ + ;; + *) + echo "Unknown distro, cannot install packages" + ;; + esac +} -- cgit v1.2.3