chiark
/
gitweb
/
~mdw
/
rcheck
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b742457
)
rcheck: Supply a default list of hosts if none are given.
author
Mark Wooding
<mdw@distorted.org.uk>
Thu, 16 Apr 2015 10:51:06 +0000
(11:51 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Thu, 16 Apr 2015 10:51:06 +0000
(11:51 +0100)
The default is :rcheck_hosts from /etc/slaves.
rcheck
patch
|
blob
|
blame
|
history
diff --git
a/rcheck
b/rcheck
index 318aab6066907761875352acf4dd4ed45262dc43..c4f59a87f3c827673ff8f11643b7af9b570ee355 100755
(executable)
--- a/
rcheck
+++ b/
rcheck
@@
-12,6
+12,8
@@
do
prog=$(readlink "${prog##*/}")
done
+case $# in 0) set -- $(expand-list /etc/slaves :rcheck_hosts) ;; esac
+
exec 4>&1
rc=0
for host in "$@"; do