make the program return with exit code 1 if not root
This commit is contained in:
parent
5e3fe91ead
commit
c47cd51dae
2 changed files with 1 additions and 1 deletions
Binary file not shown.
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 7.8 KiB |
|
@ -10,7 +10,7 @@ fn main() {
|
|||
let euid = unsafe { geteuid() };
|
||||
|
||||
if uid != 0 || euid != 0 {
|
||||
return;
|
||||
std::process::exit(1);
|
||||
}
|
||||
|
||||
println!("░█████╗░██╗░░██╗██╗░░██╗██╗░░██╗██╗░░██╗██╗██╗██╗");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue