We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eeca277 commit e0814c0Copy full SHA for e0814c0
etc/scripts/get-stack.sh
@@ -658,10 +658,16 @@ check_stack_installed() {
658
if [ "$FORCE" = "true" ] ; then
659
[ "$DEST" != "" ] || DEST="$(stack_location)"
660
else
661
+ if has_curl; then
662
+ get="curl -sSL"
663
+ else
664
+ get="wget -qO-"
665
+ fi
666
die "Stack $(stack_version) already appears to be installed at:
667
$(stack_location)
668
Use 'stack upgrade' or your OS's package manager to upgrade,
-or pass '-f' to this script to over-write the existing binary."
669
+or pass '-f' to this script to over-write the existing binary, e.g.:
670
+ $get https://get.haskellstack.org/ | sh -s - -f"
671
fi
672
673
[ "$DEST" != "" ] || DEST="$DEFAULT_DEST"
0 commit comments