[repo] Add & update docs, fix install script dirs

This commit is contained in:
Marty Oehme 2020-07-08 13:51:27 +02:00
parent 14d56b5544
commit 4f4e67ff1c
No known key found for this signature in database
GPG key ID: 0CCB0526EFB9611A
3 changed files with 15 additions and 6 deletions

View file

@ -2,13 +2,14 @@
#
# install.sh
#
# Installs dotfiles and packages for my setup
# Installs dotfiles and packages for my setup.
# Needs to be invoked from containing dotfile directory to work correctly.
#
# Will first install yay, then all my used packages (read from bootstrap/packages.csv)
# Will first install yay, then all my used packages (read from bootstrap/packages.txt)
#
# Finally, symlinks all dotfiles into their correct locations using stow
bootstrap_dir="${BOOTSTRAP_DIRECTORY:-./_bootstrap}"
bootstrap_dir="${BOOTSTRAP_DIRECTORY:-./bootstrap}"
main() {
local cmd=""
@ -64,10 +65,10 @@ install() {
fi
echo "====================== BEGINNING INSTALLATION ============================="
if ! "$unattended"; then
export BOOTSTRAP_PACKAGES="_bootstrap/packages.txt"
export BOOTSTRAP_PACKAGES="bootstrap/packages.txt"
"$bootstrap_dir"/install_packages.sh
else
export BOOTSTRAP_PACKAGES="_bootstrap/packages.txt"
export BOOTSTRAP_PACKAGES="bootstrap/packages.txt"
"$bootstrap_dir"/install_packages.sh -f
fi
unset BOOTSTRAP_PACKAGES