From 6ffc1cc5b18e0cd93cc930c21b5723393a24f9ce Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 16 May 2016 00:43:25 +0200 Subject: no integrity checking in recv-media --- hel/recv-media.nix | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/hel/recv-media.nix b/hel/recv-media.nix index 4ce05d44..e0dc261f 100644 --- a/hel/recv-media.nix +++ b/hel/recv-media.nix @@ -1,23 +1,13 @@ -{ stdenv, coreutils, ffmpeg-full, writeScriptBin }: +{ stdenv, coreutils, writeScriptBin }: writeScriptBin "recv-media" '' #!${stdenv.shell} [[ -z "$1" ]] && exit 2 - PATH=${ffmpeg-full}/bin:${coreutils}/bin + PATH=${coreutils}/bin dir=/var/media - - file="''${dir}/.$(basename "$1")" - #file2="''${dir}/.copy.$(basename "$1")" - nFile="''${dir}/$(basename "$1")" - #cat > "''${file}" - if ffmpeg -v warning -i "''$1" -c copy "''${file}" 2>&1