Don't duplicate code.
This commit is contained in:
parent
2e3751ffa7
commit
0803d86c40
@ -121,14 +121,13 @@ targetEnvOutput( const QStringList& args,
|
||||
|
||||
program = "chroot";
|
||||
arguments = QStringList( { destDir } );
|
||||
arguments << args;
|
||||
}
|
||||
else
|
||||
{
|
||||
program = "sh";
|
||||
arguments = QStringList( { "-c" } );
|
||||
arguments << args;
|
||||
}
|
||||
arguments << args;
|
||||
|
||||
process.setProgram( program );
|
||||
process.setArguments( arguments );
|
||||
|
Loading…
Reference in New Issue
Block a user