From e27a28dd6b899629d11c44baff72f19340ef0cf1 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 15 May 2016 23:19:56 +0200 Subject: abort on lacking arguments --- hel/recv-media.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hel') diff --git a/hel/recv-media.nix b/hel/recv-media.nix index 24c7a15c..d8192e0f 100644 --- a/hel/recv-media.nix +++ b/hel/recv-media.nix @@ -3,6 +3,8 @@ writeScriptBin "recv-media" '' #!${stdenv.shell} + [[ -z "$1" ]] && exit 2 + PATH=${ffmpeg-full}/bin:${coreutils}/bin dir=/var/media -- cgit v1.2.3