Skip to content

Commit 8b1c865

Browse files
committed
Add non-root reminder
1 parent d7c9726 commit 8b1c865

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

PICoBoot_Utility.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ int main(int argc, char **argv) {
9191
return 1;
9292
}
9393

94+
if (geteuid()) {
95+
printf("Warning: You may encounter problems without root permissions\n");
96+
}
97+
9498
std::unordered_map<std::string, std::function<int(const std::vector<std::string>&)>> command_map = {
9599
{"devices", [](auto &arg){return Command_Devices(arg);}},
96100
{"info", [](auto &arg){return Command_Info(arg);}},

0 commit comments

Comments
 (0)