mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-26 17:05: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";
|
||||
arguments = QStringList( { destDir } );
|
||||
arguments << args;
|
||||
}
|
||||
else
|
||||
{
|
||||
program = "sh";
|
||||
arguments = QStringList( { "-c" } );
|
||||
arguments << QString( "\"%1\"" ).arg( args.join( ' ' ) );
|
||||
}
|
||||
arguments << args;
|
||||
|
||||
process.setProgram( program );
|
||||
process.setArguments( arguments );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue