Use POSIX-compliant "." instead of "source"

Using "source" to source a script isn't defined by POSIX sh, while "."
is. Using the more portable "." makes it work with QNX's sh.

Change-Id: I948fc562c62789184553d57b949697c2525771f3
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
This commit is contained in:
Frank Osterfeld
2013-10-01 14:57:20 +02:00
committed by Frank Osterfeld
parent da63065337
commit 9ef0b75e88

View File

@@ -56,7 +56,7 @@ QString LinuxDeviceProcess::fullCommandLine() const
{
QString fullCommandLine;
foreach (const QString &filePath, rcFilesToSource())
fullCommandLine += QString::fromLatin1("test -f %1 && source %1;").arg(filePath);
fullCommandLine += QString::fromLatin1("test -f %1 && . %1;").arg(filePath);
if (!m_workingDir.isEmpty()) {
fullCommandLine.append(QLatin1String("cd ")).append(quote(m_workingDir))
.append(QLatin1String(" && "));