RPi-Distro / pi-gen

Tool used to create the official Raspberry Pi OS images
BSD 3-Clause "New" or "Revised" License
2.58k stars 1.61k forks source link

How can I output debug messages into log and build output #673

Closed maxpavlov closed 1 year ago

maxpavlov commented 1 year ago

I am having an issue with one of my step's 00-run.sh files withing one of the step subfolders and I am not sure if the conditional statement is hit and the subroutine executes.

How can I debug log the execution of the script into a build output or a log? Particularly, output a value of the environment variable for debugging purposes.

Thanks in advance for the hint.

maxpavlov commented 1 year ago

Checked. Doing a plain echo 'message' from .sh step script outputs the messages, so trivial.