diff options
Diffstat (limited to 'pkgs/by-name/no/notify-run/src/main.rs')
| -rw-r--r-- | pkgs/by-name/no/notify-run/src/main.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/by-name/no/notify-run/src/main.rs b/pkgs/by-name/no/notify-run/src/main.rs index 2aefd4df..de625627 100644 --- a/pkgs/by-name/no/notify-run/src/main.rs +++ b/pkgs/by-name/no/notify-run/src/main.rs @@ -16,7 +16,9 @@ fn main() -> Result<()> { let args = args().skip(1).collect::<Vec<_>>(); let mut cmd = Command::new(&args[0]); - cmd.args(args[1].split(" ").collect::<Vec<_>>().as_slice()); + if let Some(arguments) = args.get(1) { + cmd.args(arguments.split(" ").collect::<Vec<_>>().as_slice()); + } eprintln!("Spawning {:?}", cmd); |
