Allow to use wget instead of curl, fixes #15

This commit is contained in:
Julian Ospald 2018-10-28 17:00:54 +08:00
parent f71bf2fd51
commit 86ffcf81d9
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28

12
ghcup
View File

@ -131,6 +131,7 @@ FLAGS:
-v, --verbose Enable verbose output
-h, --help Prints help information
-V, --version Prints version information
-w, --wget Use wget instead of curl
SUBCOMMANDS:
install Install GHC
@ -1134,7 +1135,16 @@ while [ $# -gt 0 ] ; do
exit 0;;
-h|--help)
usage;;
*) case $1 in
-w|--wget)
DOWNLOADER="wget"
DOWNLOADER_OPTS=""
shift 1
if [ $# -lt 1 ] ; then
usage
fi
;;
*) # TODO: here comes command availability checking
case $1 in
install)
shift 1
while [ $# -gt 0 ] ; do