diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2016-05-15 23:19:56 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2016-05-15 23:19:56 +0200 |
commit | e27a28dd6b899629d11c44baff72f19340ef0cf1 (patch) | |
tree | d61af4e8629a0a09113f98202e1021dcf40a7a0d /hel/recv-media.nix | |
parent | 81a4f8b5192c89682367723bbb0777c29654422f (diff) | |
download | nixos-e27a28dd6b899629d11c44baff72f19340ef0cf1.tar nixos-e27a28dd6b899629d11c44baff72f19340ef0cf1.tar.gz nixos-e27a28dd6b899629d11c44baff72f19340ef0cf1.tar.bz2 nixos-e27a28dd6b899629d11c44baff72f19340ef0cf1.tar.xz nixos-e27a28dd6b899629d11c44baff72f19340ef0cf1.zip |
abort on lacking arguments
Diffstat (limited to 'hel/recv-media.nix')
-rw-r--r-- | hel/recv-media.nix | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ | |||
3 | writeScriptBin "recv-media" '' | 3 | writeScriptBin "recv-media" '' |
4 | #!${stdenv.shell} | 4 | #!${stdenv.shell} |
5 | 5 | ||
6 | [[ -z "$1" ]] && exit 2 | ||
7 | |||
6 | PATH=${ffmpeg-full}/bin:${coreutils}/bin | 8 | PATH=${ffmpeg-full}/bin:${coreutils}/bin |
7 | 9 | ||
8 | dir=/var/media | 10 | dir=/var/media |