Commit cf9e0643 authored by Raphael Kubo da Costa's avatar Raphael Kubo da Costa

autotests: Fix testenv script on Unix.

Summary:
Commit f89c0b56 ("Akonaditest: Fix testenv script on Windows") ended up
breking the shell script created on non-Windows environments.

Instead of

    old_foo="bar"

we were doing

    $old_foo="bar"

which then failed to be sourced.

Reviewers: dvratil

Reviewed By: dvratil

Subscribers: #kde_pim

Tags: #kde_pim

Differential Revision: https://phabricator.kde.org/D10491
parent 3a7017dd
......@@ -35,7 +35,7 @@ void ShellScript::writeEnvironmentVariables()
const auto tmpl = QStringLiteral("$env:_old_%1=$env:%1\r\n"
"$env:%1=\"%2\"\r\n");
#else
const auto tmpl = QStringLiteral("$_old_%1=$%1\n"
const auto tmpl = QStringLiteral("_old_%1=$%1\n"
"%1=\"%2\"\n"
"export %1\n");
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment