index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | bin/cleanup | 7 |
diff --git a/bin/cleanup b/bin/cleanup index aa93004..f84d687 100755 --- a/bin/cleanup +++ b/bin/cleanup @@ -4,6 +4,13 @@ . "${0%/*}/../conf/default.conf" +# we only clean if run interactive or if no one is logged in +if ! tty -s && \ + [ -n "$(users)" ]; then + >&2 echo 'Skipping clean up.' + exit +fi + if ! "${base_dir}/bin/sanity-check" -r; then >&2 echo 'Build master is not sane.' exit 1 |