Skip to content

Commit

Permalink
liteenv: fix env parse for go1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
visualfc committed Aug 10, 2023
1 parent af82687 commit 547be22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions liteidex/src/plugins/liteenv/envmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ void Env::readStdout()
QString value = info.right(info.length()-index-1);
if (value.startsWith("\"") && value.endsWith("\"")) {
value = value.mid(1,value.length()-2);
} else if (value.startsWith("\'") && value.endsWith("\'")) {
value = value.mid(1,value.length()-2);
}
m_goEnvMap[key] = value;
}
Expand Down

0 comments on commit 547be22

Please sign in to comment.