Skip to content

Commit

Permalink
build.sh: Let script cmd return exit code
Browse files Browse the repository at this point in the history
'script -e' returns the exit code of the child process.

This yields again to the intended behaviour (Closes #72).
  • Loading branch information
thomas committed Aug 1, 2019
1 parent 9fe4f38 commit 3555f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ chmod a+rx "$PKG.build.sh"

echo "sudo -u build script -q -c \"./$PKG.build.sh\" /package/pkg/$PKG/$PKG.build.log"
(
sudo -u build script -q -c "./$PKG.build.sh" /package/pkg/$PKG/$PKG.build.log
sudo -u build script -q -e -c "./$PKG.build.sh" /package/pkg/$PKG/$PKG.build.log
sudo -u build cp "$PKG.build.sh" "/package/pkg/$PKG/$PKG.build.sh"
)

Expand Down

0 comments on commit 3555f8a

Please sign in to comment.