Print debug info

This commit is contained in:
Kroese 2023-05-01 23:22:06 +02:00 committed by GitHub
parent 84133fb680
commit af262fd7df

View File

@ -30,12 +30,14 @@ HOST_ARGS+=("-cpu_arch=${HOST_CPU}")
[ -n "$HOST_VERSION" ] && HOST_ARGS+=("-version=${HOST_VERSION}") [ -n "$HOST_VERSION" ] && HOST_ARGS+=("-version=${HOST_VERSION}")
[ -n "$HOST_TIMESTAMP" ] && HOST_ARGS+=("-ts=${HOST_TIMESTAMP}") [ -n "$HOST_TIMESTAMP" ] && HOST_ARGS+=("-ts=${HOST_TIMESTAMP}")
[ "$DEBUG" = "Y" ] && set -x if [ "$DEBUG" = "Y" ]; then
set -x
./run/host.bin "${HOST_ARGS[@]}" > /dev/null 2>&1 & ./run/host.bin "${HOST_ARGS[@]}" &
{ set +x; } 2>/dev/null { set +x; } 2>/dev/null
[ "$DEBUG" = "Y" ] && echo echo
else
./run/host.bin "${HOST_ARGS[@]}" > /dev/null 2>&1 &
fi
# Configure serial ports # Configure serial ports