From 66015b8c4bcf160b0dadd13d417772e336b9f6e8 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Thu, 16 Apr 2015 11:51:06 +0100 Subject: [PATCH] rcheck: Supply a default list of hosts if none are given. The default is :rcheck_hosts from /etc/slaves. --- rcheck | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.11.0