Created
August 7, 2024 12:00
-
-
Save TFujiwara/8e0219f098ebbeda50a38e6a47ca1b8a to your computer and use it in GitHub Desktop.
Descarga VMware Tools x64 Windows de forma automática.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # URL Base | |
| baseurl="https://packages.vmware.com/tools/releases/latest/windows/x64/" | |
| # Obtiene el nombre del fichero. | |
| fname=$(curl -s https://packages.vmware.com/tools/releases/latest/windows/x64/ | grep -Eo 'VMware-tools-([0-9][0-9].[0-9].[0-9])-([0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])-x86_64.exe' | head -1) | |
| # Hace la peticion al servidor y guarda el fichero | |
| cd instaladores && { curl -0 $baseurl$fname -o $fname ; cd ..; } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment