adjust formatting

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-10-28 13:49:06 +01:00
parent 0b674b83d2
commit a76ed2ad96
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 11 additions and 11 deletions

View File

@ -47,20 +47,20 @@ fi
old="${index}"
new="${index}-re"
echo "*------ ${old} -----------------------------------"
echo "? $(printf '%-14s' ${old}) - Count: $(docs_count ${old})"
echo "? $(printf '%-14s' ${old}) - Size: $(size_in_bytes ${old}) MB"
echo "? $(printf '%-23s' ${old}) - Count: $(docs_count ${old})"
echo "? $(printf '%-23s' ${old}) - Size: $(size_in_bytes ${old}) MB"
echo "+ Creating: ${new}"
create "${new}"
create "${new}" > /dev/null
echo "+ Reindexing: ${old} -> ${new}"
reindex "${old}" "${new}"
echo "? $(printf '%-14s' ${new}) - Count: $(docs_count ${new})"
echo "? $(printf '%-14s' ${new}) - Size: $(size_in_bytes ${new}) MB"
reindex "${old}" "${new}" > /dev/null
echo "? $(printf '%-23s' ${new}) - Count: $(docs_count ${new})"
echo "? $(printf '%-23s' ${new}) - Size: $(size_in_bytes ${new}) MB"
echo "! Deleting: ${old}"
delete "${old}"
delete "${old}" > /dev/null
echo "+ Re-Reindexing: ${new} -> ${old}"
reindex "${new}" "${old}"
echo "? $(printf '%-14s' ${old}) - Count: $(docs_count ${old})"
echo "? $(printf '%-14s' ${old}) - Size: $(size_in_bytes ${old}) MB"
reindex "${new}" "${old}" > /dev/null
echo "? $(printf '%-23s' ${old}) - Count: $(docs_count ${old})"
echo "? $(printf '%-23s' ${old}) - Size: $(size_in_bytes ${old}) MB"
echo "! Deleting: ${new}"
delete "${new}"
delete "${new}" > /dev/null
echo "*------ ${old} -----------------------------------"