Skip to content

Commit

Permalink
hyprpm: log shell in build without fails
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Mar 19, 2024
1 parent 05cd6d3 commit 07ab3b8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions hyprpm/src/core/PluginManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,12 @@ bool CPluginManager::addNewPluginRepo(const std::string& url, const std::string&
out += " -> " + cmd + "\n" + execAndGet(cmd) + "\n";
}

if (m_bVerbose)
std::cout << Colors::BLUE << "[v] " << Colors::RESET << "shell returned: " << out << "\n";

if (!std::filesystem::exists("/tmp/hyprpm/new/" + p.output)) {
progress.printMessageAbove(std::string{Colors::RED} + "" + Colors::RESET + " Plugin " + p.name + " failed to build.\n");

if (m_bVerbose)
std::cout << Colors::BLUE << "[v] " << Colors::RESET << "shell returned: " << out << "\n";

p.failed = true;

continue;
Expand Down Expand Up @@ -582,11 +582,12 @@ bool CPluginManager::updatePlugins(bool forceUpdateAll) {
out += " -> " + cmd + "\n" + execAndGet(cmd) + "\n";
}

if (m_bVerbose)
std::cout << Colors::BLUE << "[v] " << Colors::RESET << "shell returned: " << out << "\n";

if (!std::filesystem::exists("/tmp/hyprpm/update/" + p.output)) {
std::cerr << "\n" << Colors::RED << "" << Colors::RESET << " Plugin " << p.name << " failed to build.\n";
failed = true;
if (m_bVerbose)
std::cout << Colors::BLUE << "[v] " << Colors::RESET << "shell returned: " << out << "\n";
break;
}

Expand Down

0 comments on commit 07ab3b8

Please sign in to comment.