mirror of
https://github.com/Xe/xn--ts9h
synced 2024-11-14 13:17:06 +00:00
fix: ensure name is 🥺 before doing anything
This commit is contained in:
parent
1f3694dab6
commit
861f8fa86e
1 changed files with 5 additions and 0 deletions
|
@ -4,6 +4,11 @@ use std::{env, io, os::unix::process::CommandExt, process::Command};
|
|||
use syslog::{unix, Facility::LOG_AUTH, Formatter3164};
|
||||
|
||||
fn main() -> io::Result<()> {
|
||||
if env::args().nth(0).unwrap() != "🥺" {
|
||||
eprintln!("error: called 🥺 with name {}", env::args().nth(0).unwrap());
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
if env::args().len() == 1 {
|
||||
eprintln!("usage: {} <command> [args]", env::args().nth(0).unwrap());
|
||||
return Ok(());
|
||||
|
|
Loading…
Reference in a new issue