extfs: rpm: wrap variable in quotes.
commit25aa5db3fd956e99ccb2074a21b7ef650eacc7e8
authorMooffie <mooffie@gmail.com>
Mon, 6 Mar 2017 17:16:24 +0000 (6 19:16 +0200)
committerMooffie <mooffie@gmail.com>
Wed, 8 Mar 2017 23:03:41 +0000 (9 01:03 +0200)
tree343da8adec9e88496419c9e68a634ba53ce77c1e
parent95f2f1435790d372d105f25b70ec765e073d87d3
extfs: rpm: wrap variable in quotes.

Our goal is to replace the 'echo' with 'printf' on this line, for the reason
described in the previous commit. But before we do this we need to wrap one
variable in quotes.

This preliminary step does not affect the output of the helper.

As for using "tr \n ' '": this mimics the current behavior (when using no
quotes around the variable, newlines are converted to spaces by the shell; now
that we do have quotes we need to do this conversion ourselves). An alternative
is to tweak the sed script to be smarter, but it turns out it's not a simple
task.

Signed-off-by: Mooffie <mooffie@gmail.com>
src/vfs/extfs/helpers/rpm