diff options
Diffstat (limited to '')
-rwxr-xr-x | bosun | 14 |
1 files changed, 6 insertions, 8 deletions
@@ -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() { |