mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-28 01:45:36 -04:00
Fix non-chroot target env call.
This commit is contained in:
parent
42e465aa10
commit
d8818e0280
1 changed files with 2 additions and 1 deletions
|
@ -143,13 +143,14 @@ System::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 << QString( "\"%1\"" ).arg( args.join( ' ' ) );
|
||||||
}
|
}
|
||||||
arguments << args;
|
|
||||||
|
|
||||||
process.setProgram( program );
|
process.setProgram( program );
|
||||||
process.setArguments( arguments );
|
process.setArguments( arguments );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue