Browse Source

Make DEBUG=script echo the commands as they are executed

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
a6afbe762c
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/image/script.c

+ 1
- 0
src/image/script.c View File

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

Loading…
Cancel
Save