aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbosun14
1 files changed, 6 insertions, 8 deletions
diff --git a/bosun b/bosun
index 3351dbc..49ba22c 100755
--- a/bosun
+++ b/bosun
@@ -1,9 +1,7 @@
#!/bin/sh
-STOW_DIR=/etc/portage/stow
-TARGET=/etc/portage
-
-stowcmd="stow -d "$STOW_DIR" -t "$TARGET""
+# allow overriding STOW_DIR by the user
+export STOW_DIR=${STOW_DIR:-/etc/portage/stow}
need_root() {
if test $(id -u) -ne 0; then
@@ -14,22 +12,22 @@ need_root() {
add() {
need_root
- $stowcmd -S "$@"
+ stow -S "$@"
}
remove() {
need_root
- $stowcmd -D "$@"
+ stow -D "$@"
}
flush() {
need_root
- list | xargs -- $stowcmd -D
+ list | xargs -- stow -D
}
rebuild() {
need_root
- list | xargs -- $stowcmd -R
+ list | xargs -- stow -R
}
list() {