Skip to content

Commit 9aa86fe

Browse files
andirJosef Boudník
authored andcommitted
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 rkt#3127 (diff) where it was agreed upon that aborting on unexpected failures would be desirable.
1 parent 43628b8 commit 9aa86fe

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎scripts/install-rkt.sh‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ tar xvzf rkt-v"${version}".tar.gz
2929
cat <<EOF >install-pak
3030
#!/bin/bash
3131
32+
# abort/fail on any error
33+
set -e
34+
3235
# fix mkdir issues with checkinstall and fstrans
3336
for dir in /usr/lib/rkt/stage1-images/\\
3437
/usr/share/man/man1/\\

0 commit comments

Comments
 (0)