I want to download a tar of a git repo and extract its contents to another folder.
The following line (broken up for clarity) works:
curl -L -0 nt-dotfiles.tar.gz https://api.github.com/repos/nicktomlin/laptop/tarball \ | tar --strip-components=1 -zx -C ~/Documents/dotfiles
but gives gives this error:
curl: (6) Could not resolve host: nt-dotfiles.tar.gz; nodename nor servname provided, or not known
I'm fine with leaving things as-is (because it still works) but I'm curious about the error, and would feel better if it went away.