about summary refs log tree commit diff stats
path: root/pkgs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--pkgs/by-name/no/notify-run/src/main.rs4
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);