From: Mark Wooding Date: Thu, 16 Apr 2015 10:51:06 +0000 (+0100) Subject: rcheck: Supply a default list of hosts if none are given. X-Git-Url: https://git.distorted.org.uk/~mdw/rcheck/commitdiff_plain/66015b8c4bcf160b0dadd13d417772e336b9f6e8 rcheck: Supply a default list of hosts if none are given. The default is :rcheck_hosts from /etc/slaves. --- diff --git a/rcheck b/rcheck index 318aab6..c4f59a8 100755 --- 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