From 028fee30ddacfb745b438b3ba54b01c82e36e34d Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Sat, 30 May 2020 20:42:55 -0500 Subject: [PATCH] Check for rsync too --- gravity-sync.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gravity-sync.sh b/gravity-sync.sh index 9579b53..51248f7 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -902,6 +902,20 @@ function detect_ssh { exit_nochange fi + + MESSAGE="Checking for RSYNC Client on $hostname" + echo_stat + + if hash rsync 2>/dev/null + then + echo_good + else + echo_fail + MESSAGE="${PROGRAM} requires RSYNC be installed" + echo_info + + exit_nochange + fi } ## Delete Existing Configuration