Bläddra i källkod

Make DEBUG=script echo the commands as they are executed

tags/v0.9.3
Michael Brown 18 år sedan
förälder
incheckning
a6afbe762c
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1
    0
      src/image/script.c

+ 1
- 0
src/image/script.c Visa fil

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

Laddar…
Avbryt
Spara