From 329245b4e3b9a2a9bbf7afd4570d7da311c58a42 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 2 Jun 2018 13:12:50 +0200 Subject: work on recv-media --- hel/recv-media.nix | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'hel') diff --git a/hel/recv-media.nix b/hel/recv-media.nix index 582a1ee3..91801593 100644 --- a/hel/recv-media.nix +++ b/hel/recv-media.nix @@ -27,11 +27,11 @@ writeScriptBin "recv-media" '' dir=/var/media group=$(stat -c '%G' $dir) - tmpFile="''${dir}"/.tmp/$(basename "$1") - target="''${dir}"/$(basename "$1") + tmpFile="''${dir}/.tmp/''${1:t}" + target="''${dir}/''${1:t}" if [[ -n "''${3}" ]]; then - target="''${dir}"/$(echo ''${3} | base64 -d) + target="''${dir}"/$(base64 -d <<<''${3}) fi logger --id=$pid -t recv-media -p user.debug </dev/null | sed -r '/^\[CHAPTER\]$/q; /^title=/!d; s/^title=//')'' else ''""''} -- cgit v1.2.3