summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2022-08-05 12:06:31 -0400
committerGalen Guyer <galen@galenguyer.com>2022-08-05 12:06:31 -0400
commit6c379fe0a506e4405e3e8d5f3dda4c94cbcd8496 (patch)
treefbd13784bf7eb1f45df4604bca44404128d6e879 /lib
parent50631579696f541e6818112095151b917f5f1441 (diff)
Install packages, preinstall and install methods, locations
Diffstat (limited to 'lib')
-rw-r--r--lib/packages.sh10
1 files changed, 10 insertions, 0 deletions
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
+}