Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Low Priority: Documentation of Download & Uncompress #14

Open
Darryl-G opened this issue Apr 7, 2024 · 1 comment
Open

Low Priority: Documentation of Download & Uncompress #14

Darryl-G opened this issue Apr 7, 2024 · 1 comment

Comments

@Darryl-G
Copy link

Darryl-G commented Apr 7, 2024

The section here: https://github.com/sap-linuxlab/ansible.playbooks_for_sap/blob/main/docs/GET_STARTED_WINDOWS.md#download
Has the following example:

mkdir -p run_playbooks && cd run_playbooks && curl -L https://github.com/sap-linuxlab/ansible.playbooks_for_sap/archive/refs/tags/1.0.0.zip | tar -xzv

But using 1.0.0.zip is not decompressed with tar.
Should be:

mkdir -p run_playbooks && cd run_playbooks && curl -L https://github.com/sap-linuxlab/ansible.playbooks_for_sap/archive/refs/tags/1.0.0.tar.gz | tar -xzv

Same for the MacOS section also.

@sean-freeman
Copy link
Member

Just a developer's shorthand that covers .tar.gz or .zip for the following long form operators. I didn't think much of this command to be honest, it was after a long day of documentation that I added it.

Does it need to be replaced? I'm not confident of the unzip utility across different OS and whether that will work from a curl pipe. I would have to test.

curl -L https://github.com/sap-linuxlab/ansible.playbooks_for_sap/archive/refs/tags/1.0.0.tar.gz \
| tar --extract --ungzip --verbose
-x, --extract, --get
    Extract  files  from an archive. 

-z, --gzip, --gunzip, --ungzip
    Filter the archive through [gzip](1).

-v, --verbose
    Verbosely  list  files processed.

Source: https://manpages.ubuntu.com/manpages/jammy/en/man1/tar.1.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants