aboutsummaryrefslogtreecommitdiffstats
path: root/bosun
diff options
context:
space:
mode:
authorWolfgang Müller2021-03-10 17:01:45 +0100
committerWolfgang Müller2021-03-10 17:01:45 +0100
commit366b5200155cb5a555af75864b386cb0e995901d (patch)
tree79b7a869242421301e29d583de6a7be6245c32e8 /bosun
parentd9d6e019633142d7f58fa35d08f297f8e0604fa9 (diff)
downloadbosun-366b5200155cb5a555af75864b386cb0e995901d.tar.gz
Allow overriding the role directory
The upcoming test suite needs a way to operate on roles without referencing the system's default store in /etc/portage/stow. Have bosun respect the 'BOSUN_DIR' environment variable that overrides the role directory bosun operates on.
Diffstat (limited to 'bosun')
-rwxr-xr-xbosun2
1 files changed, 1 insertions, 1 deletions
diff --git a/bosun b/bosun
index 5d651a3..c24584f 100755
--- a/bosun
+++ b/bosun
@@ -1,6 +1,6 @@
#!/bin/sh
-export STOW_DIR=/etc/portage/stow
+export STOW_DIR=${BOSUN_DIR:-/etc/portage/stow}
err() {
printf "bosun: %s\n" "$@" >&2