de-verbose cp

This commit is contained in:
Joey Hess 2013-12-27 14:06:56 -04:00
parent e9cb88ca38
commit 4d94e40ddd

View file

@ -87,7 +87,7 @@ while read line; do
# XXX when possible, send PROGRESS # XXX when possible, send PROGRESS
calclocation "$key" calclocation "$key"
mkdir -p "$(dirname "$LOC")" mkdir -p "$(dirname "$LOC")"
if runcmd cp -v "$file" "$LOC"; then if runcmd cp "$file" "$LOC"; then
echo TRANSFER-SUCCESS STORE "$key" echo TRANSFER-SUCCESS STORE "$key"
else else
echo TRANSFER-FAILURE STORE "$key" echo TRANSFER-FAILURE STORE "$key"
@ -98,7 +98,7 @@ while read line; do
# the key, outputting to the file. # the key, outputting to the file.
# XXX when easy to do, send PROGRESS # XXX when easy to do, send PROGRESS
calclocation "$key" calclocation "$key"
if runcmd cp -v "$LOC" "$file"; then if runcmd cp "$LOC" "$file"; then
echo TRANSFER-SUCCESS RETRIEVE "$key" echo TRANSFER-SUCCESS RETRIEVE "$key"
else else
echo TRANSFER-FAILURE RETRIEVE "$key" echo TRANSFER-FAILURE RETRIEVE "$key"