Make DEBUG=script echo the commands as they are executed
authorMichael Brown <mcb30@etherboot.org>
Fri, 12 Jan 2007 10:06:59 +0000 (10:06 +0000)
committerMichael Brown <mcb30@etherboot.org>
Fri, 12 Jan 2007 10:06:59 +0000 (10:06 +0000)
src/image/script.c

index 0504e4d..8443243 100644 (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 );