From b4b4059577be1a828e33d5c27c8b597a573fcbb8 Mon Sep 17 00:00:00 2001 From: Andreas Rammhold Date: Tue, 30 Aug 2016 22:09:38 +0200 Subject: [PATCH] scripts: install-rkt.sh: fail install-pak on errors When install-pak (called from install-rkt.sh) fails at some point abort packaging. This is based on a discussion in https://github.com/coreos/rkt/pull/3127#discussion-diff-76763179 where it was agreed upon that aborting on unexpected failures would be desirable. --- scripts/install-rkt.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/install-rkt.sh b/scripts/install-rkt.sh index 64ed3097fd..6e82cd4976 100755 --- a/scripts/install-rkt.sh +++ b/scripts/install-rkt.sh @@ -29,6 +29,9 @@ tar xvzf rkt-v"${version}".tar.gz cat <install-pak #!/bin/bash +# abort/fail on any error +set -e + # fix mkdir issues with checkinstall and fstrans for dir in /usr/lib/rkt/stage1-images/\\ /usr/share/man/man1/\\