We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd8c7a7 commit 6fd7c07Copy full SHA for 6fd7c07
.github/scripts/sketch_utils.sh
@@ -221,9 +221,9 @@ function build_sketch(){ # build_sketch <ide_path> <user_path> <path-to-ino> [ex
221
--build-cache-path "$ARDUINO_CACHE_DIR" \
222
--build-path "$build_dir" \
223
$xtra_opts "${sketchdir}" \
224
- > $output_file
+ 2>&1 | tee $output_file
225
226
- exit_status=$?
+ exit_status=${PIPESTATUS[0]}
227
if [ $exit_status -ne 0 ]; then
228
echo "ERROR: Compilation failed with error code $exit_status"
229
exit $exit_status
0 commit comments