basho / riak

Riak is a decentralized datastore from Basho Technologies.
http://docs.basho.com
Apache License 2.0
3.92k stars 534 forks source link

Update riak-admin escape to use printf instead of echo #1134

Open aef- opened 1 year ago

aef- commented 1 year ago

echo is not the most portable method to pipe output. In some systems echo -n hello will output "-n hello". I was experiencing this when getting an "invalid JSON" error while creating buckets with riak admin. printf is a more reliable way to "echo" variables without newlines.