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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user