]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
make lftp usage configurable in env
authorJan Palus <atler@pld-linux.org>
Thu, 29 Oct 2020 11:37:38 +0000 (12:37 +0100)
committerJan Palus <atler@pld-linux.org>
Thu, 29 Oct 2020 11:59:20 +0000 (12:59 +0100)
builder.sh

index 23e1822f80523722b815c8236ac461cbbe1ea263..e903fc6dc1c3ab3aebf4cdbbf7400da4c68aae0a 100755 (executable)
@@ -114,8 +114,7 @@ PROTOCOL="http"
 IPOPT=""
 
 # use lftp by default when available
-USE_LFTP=
-lftp --version > /dev/null 2>&1 && USE_LFTP=yes
+test -z "${USE_LFTP+x}" && lftp --version > /dev/null 2>&1 && USE_LFTP=yes
 PARALLEL_DOWNLOADS=10
 
 WGET_RETRIES=${MAX_WGET_RETRIES:-0}
This page took 0.041471 seconds and 4 git commands to generate.