mirror of
https://github.com/Xe/xn--ts9h
synced 2024-11-25 02:00:17 +00:00
Merge pull request #1 from chyyran/main
fix: ensure filename is 🥺 before doing anything
This commit is contained in:
commit
014215beb8
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