aboutsummaryrefslogtreecommitdiff
path: root/src/performcmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/performcmd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/performcmd.cpp b/src/performcmd.cpp
index d9b7977..8eafc66 100644
--- a/src/performcmd.cpp
+++ b/src/performcmd.cpp
@@ -1,5 +1,6 @@
1#include "performcmd.h" 1#include "performcmd.h"
2#include "builder.h" 2#include "builder.h"
3#include "viewer.h"
3 4
4PerformCmd::PerformCmd( const char *sCmd, const char *sTarget ) : 5PerformCmd::PerformCmd( const char *sCmd, const char *sTarget ) :
5 Perform( sTarget ), 6 Perform( sTarget ),
@@ -13,7 +14,7 @@ PerformCmd::~PerformCmd()
13 14
14void PerformCmd::execute( class Builder &bld ) 15void PerformCmd::execute( class Builder &bld )
15{ 16{
16 printf("%s\n", sCommand.getString() ); 17 bld.view().executeCmd( sCommand );
17 int ret; 18 int ret;
18 if( (ret = system( sCommand.getString() )) != 0 ) 19 if( (ret = system( sCommand.getString() )) != 0 )
19 { 20 {