Skip to content

Instantly share code, notes, and snippets.

@z3nth10n
Last active July 23, 2019 04:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save z3nth10n/1a74779c87e8f5511fff7f9e21d6812f to your computer and use it in GitHub Desktop.
Save z3nth10n/1a74779c87e8f5511fff7f9e21d6812f to your computer and use it in GitHub Desktop.
url="https://proxmox-resolv.herokuapp.com/?action="
name=$(date +%S%N)
echo "Choose:"
echo "1) Download Gitlab"
echo "2) Download Debian VM"
echo "3) Salir"
read -p "==> " a
case $a in
1) part="download-gitlab"
wget "$url$part" -O "$name.sh"
bash "$name.sh $1"
;;
2) part="download-vm"
wget "$url$part" -O "$name.sh"
bash "$name.sh"
;;
3) echo "Exiting..."
exit
;;
*)
echo "No has seleccionado una opción válida."
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment