mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-30 10:55:37 -04:00
Don't duplicate code.
This commit is contained in:
parent
2e3751ffa7
commit
0803d86c40
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue