mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 22:22:40 +00:00
WIP: Converts runs to be text files of packages to install / uninstall, begins before and after scripts to execute during runs.
This commit is contained in:
23
runs/after/dev
Executable file
23
runs/after/dev
Executable file
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
install() {
|
||||
# TODO: Handle install / uninstall.
|
||||
bob install nightly &&
|
||||
bob install stable &&
|
||||
bob use nightly
|
||||
}
|
||||
|
||||
uninstall() {
|
||||
echo "FIX ME!"
|
||||
}
|
||||
|
||||
arg=${1:-""}
|
||||
|
||||
if [[ $arg == "install" ]]; then
|
||||
install && exit $?
|
||||
elif [[ $arg == "uninstall" ]]; then
|
||||
uninstall && exit $?
|
||||
else
|
||||
# TODO: Using logging.
|
||||
echo "Error, invalid option" && exit 1
|
||||
fi
|
||||
Reference in New Issue
Block a user