Commit 4d4a0df9 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm update contents index: fix verbose

parent b3aa38a5
...@@ -51,13 +51,13 @@ rsync_alt_contents_index() ...@@ -51,13 +51,13 @@ rsync_alt_contents_index()
local res local res
assure_exists rsync assure_exists rsync
mkdir -p "$(dirname "$TD")" mkdir -p "$(dirname "$TD")"
if [ -n "$verbose" ] ; then if [ -z "$quiet" ] ; then
docmd rsync --partial --inplace $3 -a --progress "$URL" "$TD" docmd rsync --partial --inplace $3 -a --progress "$URL" "$TD"
else else
a= rsync --partial --inplace $3 -a --progress "$URL" "$TD" >/dev/null 2>/dev/null a= rsync --partial --inplace $3 -a --progress "$URL" "$TD" >/dev/null
fi fi
res=$? res=$?
[ -f "$TD" ] && sudocmd chmod a+rw "$TD" [ -f "$TD" ] && sudorun chmod a+rw "$TD"
return $res return $res
} }
......
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