aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbosun8
1 files changed, 0 insertions, 8 deletions
diff --git a/bosun b/bosun
index 08f1842..d9dc4c7 100755
--- a/bosun
+++ b/bosun
@@ -27,29 +27,21 @@ need_role() {
done
}
-need_root() {
- test "$(id -u)" -eq 0 || errx "this action requires superuser access"
-}
-
add() {
- need_root
need_role "$@"
stow -S "$@"
}
remove() {
- need_root
need_role "$@"
stow -D "$@"
}
flush() {
- need_root
list | xargs -- stow -D
}
rebuild() {
- need_root
if test $# -gt 0; then
need_role "$@"
stow -R "$@"