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 --- dots | 49 ++++++++++++++++++++++++++++++++++++++++++++++++- lib/packages.sh | 10 ++++++++++ modules/test/install.sh | 11 +++++++++++ 3 files changed, 69 insertions(+), 1 deletion(-) create mode 100644 lib/packages.sh create mode 100644 modules/test/install.sh diff --git a/dots b/dots index 4e24674..3c1807b 100755 --- a/dots +++ b/dots @@ -1,5 +1,14 @@ #!/usr/bin/env bash -source lib/* +# load our paths first +_BASE="$(realpath $0)" +_BASENAME="$(basename $_BASE)" +_BASEDIR="$(dirname $_BASE)" + +# enter our host directory so we know where everything is +cd "$_BASEDIR" + +# source all library files +for lib in lib/*; do source $lib; done function intro() { cat <