sxiii / linux-downloader

Bash script for autodownloading of different Linux distros and testing them in VMs
Other
39 stars 16 forks source link

Download without asking distro/confirmation #4

Closed BlueCobbleStone closed 1 year ago

BlueCobbleStone commented 1 year ago

Hi thanks for this script.

Can you add the support for arguments like -y to download iso without confirming or -d 1,3,4 to choose iso before running the script ?

sxiii commented 1 year ago

Hi @BlueCobbleStone :)

That's a good suggestion. I'll look into implementing it!

sxiii commented 1 year ago

@BlueCobbleStone

I have added options you requested and some others. Refactoring might be made in the future, but so far it works.

        echo "Valid command line flags:"
    echo "-h/--help: Show this help"
        echo "-y/--noconfirm: Download specified distro without confirmation. "
        echo "-s/--silent: Don't show help or extra info."
        echo "-d/--distro: Download distributions specified in the comma-separated list. Example: 0,2,34"
        exit 0;

Please try them out and report back if they work for you, we can close this :) Thanks!

BlueCobbleStone commented 1 year ago

It's working perfectly thanks !