Commit e5ae27ef authored by Vitaly Lipatov's avatar Vitaly Lipatov

rsync_alt_contents_index: add warning if rsync check is failed

parent ca75fe0b
......@@ -54,9 +54,12 @@ rsync_alt_contents_index()
local URL="$1"
local TD="$2"
local res
assure_exists rsync
assure_exists rsync || return
__rsync_check "$URL" || return
if ! __rsync_check "$URL" ; then
warning "$URL is not accessible via rsync, skipping contents index update..."
return
fi
mkdir -p "$(dirname "$TD")"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment