Don't duplicate code.

This commit is contained in:
Teo Mrnjavac 2015-08-06 13:02:34 +02:00
parent 2e3751ffa7
commit 0803d86c40

View File

@ -121,14 +121,13 @@ targetEnvOutput( const QStringList& args,
program = "chroot"; program = "chroot";
arguments = QStringList( { destDir } ); arguments = QStringList( { destDir } );
arguments << args;
} }
else else
{ {
program = "sh"; program = "sh";
arguments = QStringList( { "-c" } ); arguments = QStringList( { "-c" } );
arguments << args;
} }
arguments << args;
process.setProgram( program ); process.setProgram( program );
process.setArguments( arguments ); process.setArguments( arguments );