Commit 0b7834c2 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Don't run an execute process command if the working dir is unknown

BUG: 287805
parent a445e807
......@@ -1431,7 +1431,7 @@ int CMakeProjectVisitor::visit(const ExecuteProcessAst *exec)
QList<KProcess*> procs;
foreach(const QStringList& _args, exec->commands())
{
if (_args.isEmpty())
if (_args.isEmpty() || !QFile::exists(exec->workingDirectory()))
{
kDebug(9032) << "Error: trying to execute empty command";
break;
......
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