Fix non-chroot target env call.
This commit is contained in:
parent
42e465aa10
commit
d8818e0280
@ -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…
Reference in New Issue
Block a user