Skip to content

Commit

Permalink
scripts: install-rkt.sh: fail install-pak on errors
Browse files Browse the repository at this point in the history
When install-pak (called from install-rkt.sh) fails at some point
abort packaging.

This is based on a discussion in
rkt#3127 (diff) where
it was agreed upon that aborting on unexpected failures would be
desirable.
  • Loading branch information
andir committed Aug 30, 2016
1 parent 8a8779d commit b4b4059
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/install-rkt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ tar xvzf rkt-v"${version}".tar.gz
cat <<EOF >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/\\
Expand Down

0 comments on commit b4b4059

Please sign in to comment.