Make DEBUG=script echo the commands as they are executed

pull/1/head
Michael Brown 2007-01-12 10:06:59 +00:00
parent 9952df9b52
commit a6afbe762c
1 changed files with 1 additions and 0 deletions

View File

@ -65,6 +65,7 @@ static int script_exec ( struct image *image ) {
/* Mark end of line and execute command */
*eol = '\0';
DBG ( "$ %s\n", cmdbuf );
if ( ( rc = system ( cmdbuf ) ) != 0 ) {
DBG ( "Command \"%s\" exited with status %d\n",
cmdbuf, rc );