about summary refs log tree commit diff stats
path: root/pkgs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-11-30 16:25:12 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-11-30 16:25:12 +0100
commit910a635e76ca97519adcf472c28e433eab0ac205 (patch)
tree2835b2505ca9fde6c1a27fb77b071d94a7f11311 /pkgs
parentpkgs/yt: 1.8.0 -> 1.9.0 (diff)
downloadnixos-config-910a635e76ca97519adcf472c28e433eab0ac205.zip
pkgs/notify-run: Allow spawning commands without arguments prime
Diffstat (limited to 'pkgs')
-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);