diff --git a/tools/build.sh b/tools/build.sh index c20d6db..45bde10 100755 --- a/tools/build.sh +++ b/tools/build.sh @@ -61,10 +61,9 @@ fi chmod a+rx "$PKG.build.sh" -echo "sudo -u build -i ./$PKG.build.sh &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 &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" )