From cfa7f409663a1abf869b9efaa4b156f461c9c49a Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Thu, 24 Sep 2015 15:43:32 -0300 Subject: rsync is required --- build.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'build.sh') diff --git a/build.sh b/build.sh index 0eba523..cb59ae6 100755 --- a/build.sh +++ b/build.sh @@ -274,6 +274,10 @@ case $BUILDACTION in poudriere_update_ports ;; update_pkg_repo) + if [ -z "${DO_NOT_UPLOAD}" -a ! -f /usr/local/bin/rsync ]; then + echo "ERROR: rsync is not installed, aborting..." + exit 1 + fi poudriere_bulk ;; *) @@ -306,6 +310,11 @@ if [ -n "${SNAPSHOTS}" -a -z "${DO_NOT_UPLOAD}" ]; then exit 1 fi done + + if [ ! -f /usr/local/bin/rsync ]; then + echo "ERROR: rsync is not installed, aborting..." + exit 1 + fi fi if [ $# -gt 1 ]; then -- cgit v1.1