[install] Make sure to unset pipefail

This commit is contained in:
Junegunn Choi 2016-07-04 13:05:26 +09:00
parent 64747c2324
commit b864885753
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -138,6 +138,7 @@ download() {
local url=https://github.com/junegunn/fzf-bin/releases/download/$version/${1}.tgz
set -o pipefail
if ! (try_curl $url || try_wget $url); then
set +o pipefail
binary_error="Failed to download with curl and wget"
return
fi