summaryrefslogtreecommitdiffstats
path: root/remote
diff options
context:
space:
mode:
authorSimon Rettberg2014-07-04 20:08:57 +0200
committerSimon Rettberg2014-07-04 20:08:57 +0200
commit547f140d9240aeb0be9f7d12abdf76fb8ad58258 (patch)
tree333d805b6b583866ad0e3b721cc7612260628800 /remote
parentTry to clean up the mess with all the different kernel version variables ever... (diff)
downloadtm-scripts-547f140d9240aeb0be9f7d12abdf76fb8ad58258.tar.gz
tm-scripts-547f140d9240aeb0be9f7d12abdf76fb8ad58258.tar.xz
tm-scripts-547f140d9240aeb0be9f7d12abdf76fb8ad58258.zip
Trottel
Diffstat (limited to 'remote')
-rw-r--r--remote/includes/downloader.inc2
1 files changed, 1 insertions, 1 deletions
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