aboutsummaryrefslogtreecommitdiffstats
path: root/bosun
diff options
context:
space:
mode:
authorWynn Wolf Arbor2020-01-20 22:42:41 +0100
committerWynn Wolf Arbor2020-01-20 22:42:41 +0100
commit35c5aa0bf28a190c8b5e2166164decfbb5517770 (patch)
tree2fce0f4e54de459b7b6939135d8360b7e992a146 /bosun
parent53b23eabac7f7c801df6111989eba1d812daa760 (diff)
downloadbosun-35c5aa0bf28a190c8b5e2166164decfbb5517770.tar.gz
Have rebuild accept one or more roles
This lets the user rebuild (or restow) specific roles and will fix a certain issue with stow refusing to unstow everything.
Diffstat (limited to 'bosun')
-rwxr-xr-xbosun8
1 files changed, 6 insertions, 2 deletions
diff --git a/bosun b/bosun
index 6240029..2b913b0 100755
--- a/bosun
+++ b/bosun
@@ -27,7 +27,11 @@ flush() {
rebuild() {
need_root
- list | xargs -- stow -R
+ if test $# -gt 0; then
+ stow -R "$@"
+ else
+ list | xargs -- stow -R
+ fi
}
list() {
@@ -66,7 +70,7 @@ case $cmd in
add) add "$@";;
flush) flush;;
list) list "$@";;
- rebuild) rebuild;;
+ rebuild) rebuild "$@";;
remove) remove "$@";;
*) list_active;;
esac