Don't duplicate code.
This commit is contained in:
parent
2e3751ffa7
commit
0803d86c40
@ -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 );
|
||||||
|
Loading…
Reference in New Issue
Block a user