summaryrefslogtreecommitdiff
path: root/download
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-03-09 14:34:00 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-03-09 14:34:00 +0100
commitbda0b068b8b6a4dadf18b46098192d52be6cb963 (patch)
treee4789072d0f71b6bdb6ff25b52f3c76379503bc4 /download
parenta5f27616ed0ce486558e9a281568c65fda7afeb2 (diff)
Enable Bash pipefail so that e.g. wget failure leads to download failure
Diffstat (limited to 'download')
-rwxr-xr-xdownload4
1 files changed, 3 insertions, 1 deletions
diff --git a/download b/download
index 55e06225db2d..89efbbe451fb 100755
--- a/download
+++ b/download
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -26,6 +26,8 @@
#
#*************************************************************************
+set -o pipefail
+
# environment setup yet?
if [ -z "$TARFILE_LOCATION" ]; then
. ./config_host.mk