aws-encryption-sdk-cli: 1.0.2.7
Windows: 10.0.14393.1884
PowerShell: 5.0.14393.1884
Related to: #65
The metadata file that the encrypt and decrypt commands write has blank lines after each JSON string. As a result:
PS C:\ps-test> (cat $home\metadata.txt)[-1]
PS C:\ps-test>
PS C:\ps-test> (cat $home\metadata.txt)[-1] -eq ''
True
Also, the count value is misleading:
PS C:\ps-test> (cat $home\metadata.txt).count
22
PS C:\ps-test> ((cat $home\metadata.txt) -match '^\S').count
11