Abort with message if cannot run rsync

This commit is contained in:
Bill Wilson
2013-02-20 21:20:40 -06:00
parent 301438f204
commit 1facf6e0ff

View File

@@ -23,6 +23,15 @@ then
exit 1
fi
if ! rsync --version > /dev/null
then
echo -e "\nOoops! rpi-clone needs the rsync program but cannot run it."
echo "Make sure rsync is installed:"
echo " $ apt-get update"
echo -e " $ apt-get install rsync\n"
exit 0
fi
usage()
{
echo ""