Allow to use wget instead of curl, fixes #15
This commit is contained in:
parent
f71bf2fd51
commit
86ffcf81d9
12
ghcup
12
ghcup
@ -131,6 +131,7 @@ FLAGS:
|
|||||||
-v, --verbose Enable verbose output
|
-v, --verbose Enable verbose output
|
||||||
-h, --help Prints help information
|
-h, --help Prints help information
|
||||||
-V, --version Prints version information
|
-V, --version Prints version information
|
||||||
|
-w, --wget Use wget instead of curl
|
||||||
|
|
||||||
SUBCOMMANDS:
|
SUBCOMMANDS:
|
||||||
install Install GHC
|
install Install GHC
|
||||||
@ -1134,7 +1135,16 @@ while [ $# -gt 0 ] ; do
|
|||||||
exit 0;;
|
exit 0;;
|
||||||
-h|--help)
|
-h|--help)
|
||||||
usage;;
|
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)
|
install)
|
||||||
shift 1
|
shift 1
|
||||||
while [ $# -gt 0 ] ; do
|
while [ $# -gt 0 ] ; do
|
||||||
|
Loading…
Reference in New Issue
Block a user