From 3ba153b4be4c2fe8ad7decf8ebc7cf5d8815a0e9 Mon Sep 17 00:00:00 2001 From: Kshitij Bansal Date: Thu, 12 Feb 2015 08:49:50 -0500 Subject: [PATCH] try curl before wget, workaround for issue with FTP PASV --- contrib/get-antlr-3.4 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/get-antlr-3.4 b/contrib/get-antlr-3.4 index 74bce743e..436ef6a8d 100755 --- a/contrib/get-antlr-3.4 +++ b/contrib/get-antlr-3.4 @@ -15,10 +15,10 @@ if ! [ -e src/parser/cvc/Cvc.g ]; then fi function webget { - if which wget &>/dev/null; then - wget -c -O "$2" "$1" - elif which curl &>/dev/null; then + if which curl &>/dev/null; then curl "$1" >"$2" + elif which wget &>/dev/null; then + wget -c -O "$2" "$1" else echo "Can't figure out how to download from web. Please install wget or curl." >&2 exit 1 -- 2.30.2