Skip to content

Commit

Permalink
Add non-root reminder
Browse files Browse the repository at this point in the history
  • Loading branch information
ReimuNotMoe committed Aug 7, 2021
1 parent d7c9726 commit 8b1c865
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions PICoBoot_Utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ int main(int argc, char **argv) {
return 1;
}

if (geteuid()) {
printf("Warning: You may encounter problems without root permissions\n");
}

std::unordered_map<std::string, std::function<int(const std::vector<std::string>&)>> command_map = {
{"devices", [](auto &arg){return Command_Devices(arg);}},
{"info", [](auto &arg){return Command_Info(arg);}},
Expand Down

0 comments on commit 8b1c865

Please sign in to comment.