forked from qt-creator/qt-creator
Remove outdated code
Change-Id: I65e0ed79dabd987bc67d4082969835d52dd7cb8b Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -670,13 +670,7 @@ bool ProcessArgs::prepareCommand(const CommandLine &cmdLine, QString *outCmd, Pr
|
||||
} else {
|
||||
if (err != ProcessArgs::FoundMeta)
|
||||
return false;
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 10, 0)
|
||||
*outCmd = qEnvironmentVariable("SHELL", "/bin/sh");
|
||||
#else
|
||||
// for sdktool
|
||||
*outCmd = qEnvironmentVariableIsSet("SHELL") ? QString::fromLocal8Bit(qgetenv("SHELL"))
|
||||
: QString("/bin/sh");
|
||||
#endif
|
||||
*outArgs = ProcessArgs::createUnixArgs({"-c", quoteArg(executable.toString()) + ' ' + arguments});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user