From 547f140d9240aeb0be9f7d12abdf76fb8ad58258 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 4 Jul 2014 20:08:57 +0200 Subject: Trottel --- remote/includes/downloader.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remote/includes/downloader.inc b/remote/includes/downloader.inc index 4ca71433..7ec8d872 100644 --- a/remote/includes/downloader.inc +++ b/remote/includes/downloader.inc @@ -9,7 +9,7 @@ download () { [ -z "$1" ] && perror "download: URL empty." local URL="$1" # If a sourceforge mirror is set in ./config, try to use it - if [[ -n "$sourceforge_mirror" -a "$URL" != *use_mirror* ]] && [[ "$URL" == *sourceforge.net* -o "$URL" == *.sf.net* ]]; then + if [ -n "$sourceforge_mirror" ] && [[ "$URL" != *use_mirror* ]] && [[ "$URL" == *sourceforge.net* || "$URL" == *.sf.net* ]]; then if [[ "$URL" == *\?* ]]; then URL+="&use_mirror=$sourceforge_mirror" else -- cgit v1.2.3-55-g7522