Skip to content

Commit

Permalink
xar: simplify sample generation command
Browse files Browse the repository at this point in the history
  • Loading branch information
generalmimon committed Jan 23, 2022
1 parent b41101d commit f784c03
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions archive/xar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ Shell commands to generate:

```sh
# Requires `7z` from <https://www.7-zip.org/> - install `p7zip-full` on Debian/Ubuntu
curl -LO https://github.com/jhermsmeier/node-xarchive/raw/93dffe2/test/data/test.xar
mv test.xar apple-sha512-files-gzip.xar
curl -L -o apple-sha512-files-gzip.xar https://github.com/jhermsmeier/node-xarchive/raw/93dffe2/test/data/test.xar
phys_size=$(7z l apple-sha512-files-gzip.xar | sed -En 's/^Physical Size = ([0-9]+)$/\1/p')
[ -n "$phys_size" ] \
&& [ "$phys_size" -ne "$(wc -c < apple-sha512-files-gzip.xar)" ] \
Expand Down

0 comments on commit f784c03

Please sign in to comment.