Skip to content

Commit

Permalink
Merge pull request #66 from mariux64/fix-tee-pipe
Browse files Browse the repository at this point in the history
Fix tee pipe
  • Loading branch information
wwwutz authored Jun 28, 2019
2 parents 4da12e3 + d8c7797 commit cb50fb4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,9 @@ fi

chmod a+rx "$PKG.build.sh"

echo "sudo -u build -i ./$PKG.build.sh </dev/null 2>&1 | tee $PKG.build.log"
echo "sudo -u build script -q -c \"./$PKG.build.sh\" $PKG.build.log"
(
set -o pipefail
sudo -u build ./$PKG.build.sh </dev/null 2>&1 | tee $PKG.build.log
sudo -u build script -q -c "./$PKG.build.sh" $PKG.build.log
sudo -u build cp "$PKG.build.sh" "/package/pkg/$PKG/.$PKG.build.sh"
)

Expand Down

0 comments on commit cb50fb4

Please sign in to comment.