mirror of
https://github.com/ipxe/ipxe
synced 2025-12-17 18:11:49 +03:00
Make DEBUG=script echo the commands as they are executed
This commit is contained in:
@@ -65,6 +65,7 @@ static int script_exec ( struct image *image ) {
|
|||||||
|
|
||||||
/* Mark end of line and execute command */
|
/* Mark end of line and execute command */
|
||||||
*eol = '\0';
|
*eol = '\0';
|
||||||
|
DBG ( "$ %s\n", cmdbuf );
|
||||||
if ( ( rc = system ( cmdbuf ) ) != 0 ) {
|
if ( ( rc = system ( cmdbuf ) ) != 0 ) {
|
||||||
DBG ( "Command \"%s\" exited with status %d\n",
|
DBG ( "Command \"%s\" exited with status %d\n",
|
||||||
cmdbuf, rc );
|
cmdbuf, rc );
|
||||||
|
|||||||
Reference in New Issue
Block a user