diff options
author | Simon Rettberg | 2014-07-04 20:08:57 +0200 |
---|---|---|
committer | Simon Rettberg | 2014-07-04 20:08:57 +0200 |
commit | 547f140d9240aeb0be9f7d12abdf76fb8ad58258 (patch) | |
tree | 333d805b6b583866ad0e3b721cc7612260628800 /remote | |
parent | Try to clean up the mess with all the different kernel version variables ever... (diff) | |
download | tm-scripts-547f140d9240aeb0be9f7d12abdf76fb8ad58258.tar.gz tm-scripts-547f140d9240aeb0be9f7d12abdf76fb8ad58258.tar.xz tm-scripts-547f140d9240aeb0be9f7d12abdf76fb8ad58258.zip |
Trottel
Diffstat (limited to 'remote')
-rw-r--r-- | remote/includes/downloader.inc | 2 |
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 |