From 01f1e4b8130efdc5120b0c310ea453fa5734f9a7 Mon Sep 17 00:00:00 2001 From: josch Date: Sat, 7 Feb 2015 12:47:21 +0100 Subject: bin/find_dpkg_trigger_cycles.sh: print curl exit code and exit after failure --- bin/find_dpkg_trigger_cycles.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/find_dpkg_trigger_cycles.sh') diff --git a/bin/find_dpkg_trigger_cycles.sh b/bin/find_dpkg_trigger_cycles.sh index 93cd409b..3ba6ba60 100755 --- a/bin/find_dpkg_trigger_cycles.sh +++ b/bin/find_dpkg_trigger_cycles.sh @@ -156,7 +156,7 @@ curl --globoff "http://binarycontrol.debian.net/?q=&path=${DIST}%2F[^%2F]%2B%2Ft | while read pkg url; do echo "working on $pkg..." >&2 tmpdir=`mktemp -d` - ( curl --retry 2 --location --silent "$url" || echo "curl failed">&2 ) \ + ( curl --retry 2 --location --silent "$url" || ( echo "curl failed with exit $?">&2; exit 1 ) ) \ | dpkg-deb --ctrl-tarfile /dev/stdin \ | tar -C "$tmpdir" --exclude=./md5sums -x if [ ! -f "$tmpdir/triggers" ]; then -- cgit v1.2.3-70-g09d2