Fix the encoding command to be compatible with ZSH

I haven't tested the mac version because I do not have access to one.
This commit is contained in:
redg3ar 2018-10-02 14:00:08 -04:00 committed by GitHub
parent 5292c4b789
commit c16a5dfa44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,11 +27,11 @@ One simple way to host is to [forward a domain](https://support.google.com/domai
## Generating links programatically
Encoding (Mac)
```echo -n 'hello world' | lzma -9 | base64 | printf "https://itty.bitty.site/#/%s\n" "$(cat -)"```
```echo -n 'hello world' | lzma -9 | base64 | xargs -0 printf "https://itty.bitty.site/#/%s\n"```
Encoding (Linux)
```echo -n 'hello world' | lzma -9 | base64 -w0 | printf "https://itty.bitty.site/#/%s\n" "$(cat -)"```
```echo -n 'hello world' | lzma -9 | base64 -w0 | xargs -0 printf "https://itty.bitty.site/#/%s\n"```
Encoding (Win Git/WSL)