From 1c53edfb57f06786311e407b7a53a79801f58ce4 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 13 Jun 2017 10:38:27 +0200 Subject: Support transfer of base64 filename --- hel/recv-media.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'hel') diff --git a/hel/recv-media.nix b/hel/recv-media.nix index 23c2c89e..582a1ee3 100644 --- a/hel/recv-media.nix +++ b/hel/recv-media.nix @@ -30,6 +30,10 @@ writeScriptBin "recv-media" '' tmpFile="''${dir}"/.tmp/$(basename "$1") target="''${dir}"/$(basename "$1") + if [[ -n "''${3}" ]]; then + target="''${dir}"/$(echo ''${3} | base64 -d) + fi + logger --id=$pid -t recv-media -p user.debug <