Use pipeline to remove new line char (#3458)

When -w option is not available for base64, for example, when using alpine Docker image.
`echo -n "<text>" | base64 | tr -d '\n'` should be used, it works better.
This commit is contained in:
Hoat Le
2017-04-27 23:35:38 +07:00
committed by Andrew Chen
parent a9ca41e8ac
commit f428116387
+2 -1
View File
@@ -135,7 +135,8 @@ secret "mysecret" created
encoded as base64 strings. Newlines are not valid within these strings and must
be omitted. When using the `base64` utility on Darwin/OS X users should avoid
using the `-b` option to split long lines. Conversely Linux users *should* add
the option `-w 0` to `base64` commands.
the option `-w 0` to `base64` commands or the pipeline `base64 | tr -d '\n'` if
`-w` option is not available.
#### Decoding a Secret